Hi friends!

I’m sort of embarrassed that I can’t seem to get my head around this, but can someone help me figure out where I’m going wrong? So far, I’m working with:

function lightColumn(coordinate)

{

let targetColumn = [];

column = convertColumn(coordinate);

for (row = 0; row < GRID.length; row++)

{

targetColumn.push(column[row]);

}

return targetColumn;

}

Maybe I’m going about this in a completely wrong way?