We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa47c37 commit 04fc9faCopy full SHA for 04fc9fa
02_program_structure.txt
@@ -980,14 +980,14 @@ should form a chess board.
980
Passing this string to `console.log` should show something like this:
981
982
----
983
-# # # #
984
# # # #
985
986
987
988
989
990
+# # # #
991
992
993
When you have a program that generates this pattern, define a
code/solutions/02_3_chess_board.js
@@ -5,9 +5,9 @@ var board = "";
5
for (var y = 0; y < size; y++) {
6
for (var x = 0; x < size; x++) {
7
if ((x + y) % 2 == 0)
8
- board += "#";
9
- else
10
board += " ";
+ else
+ board += "#";
11
}
12
board += "\n";
13
0 commit comments