Created
December 18, 2019 23:02
-
-
Save LuisRBarreras/6208e61287768d757265363c0be72343 to your computer and use it in GitHub Desktop.
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
const gridSize = 8; | |
for(i=1; i <= gridSize; i++) { | |
let times = Math.floor(gridSize / 2); | |
if(i % 2 === 1) console.log(' *'.repeat(times)) | |
else console.log('* '.repeat(times)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment