Created
July 15, 2015 17:31
-
-
Save wiafe/99e27076ec7896ca741b to your computer and use it in GitHub Desktop.
Checkerboard Javascript Solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (var i = 1; i <= 8; i++) { | |
if (i % 2 === 0){ | |
console.log(" # # # #"); | |
}else { | |
console.log("# # # # "); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment