This one took a bit longer, needed to make sure I understand why everything is where it is. I will work on this with other variable names and other loop options just to get clearer with it.
let size = 8;
let square = '';
let row = 1;
while(row <= size) {
let column = 1;
while(column <= size) {
if ((column + row) % 2 ==0){
square += " ";
}
else { square += "#";
}
column += 1;
}
square += '\n';
row += 1;
}
console.log(square);