Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var i = "";
- for (var width = 0; width < 8; width++) {
- for (var height = 0; height < 8; height++) {
- if ((width + height) % 2 == 0) {
- i += " ";}
- else {
- i += "#";}
- }
- i += "\n";
- }
- console.log(i);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement