+ 1

let size = 8; let board = ""; for (let y = 0; y < size; y++) {for (let x = 0; x < size; x++) { if ((x + y) % 2 == 0) {

its j.s code that prints a chessboard . I don't understand the code someone should help me explain d code line by line

21st Nov 2019, 7:42 AM
Charles $now
Charles $now - avatar
2 Antworten
+ 7
Charles $now link the comlete code for getting any useful answer. You can simply paste code in codeplayground javascript section and insert the code in your post via insert code option
21st Nov 2019, 7:46 AM
GAWEN STEASY
GAWEN STEASY - avatar
0
Please show your code here so that we can help you https://www.sololearn.com/post/75089/?ref=app
21st Nov 2019, 9:44 AM
Gordon
Gordon - avatar