We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9cd7b commit 311020eCopy full SHA for 311020e
program_structure_chess_board_3_1.js
@@ -1,11 +1,11 @@
1
for (var row = 0; row < 8; row++) {
2
var str = '';
3
- for (var col = 0; col < 8; col++) {
4
- if ((row % 2) == (col % 2)) {
5
- str += '#';
6
- } else {
7
- str += '_';
8
- }
+ for (var col = 0; col < 8; col++) {
+ if ((row % 2) == (col % 2)) {
+ str += '#';
+ } else {
+ str += '_';
9
}
10
- console.log(str);
11
-}
+ }
+ console.log(str);
+}
0 commit comments