Created
June 2, 2016 13:14
-
-
Save lsongdev/3b859c9fde7072fa7c491ad91220a856 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 y=0;y<=10;y++){ | |
| var arr = []; | |
| for(var x=0;x<5;x++) arr.push( Math.max(0, Math.round((y / 2) - x)) ); | |
| console.log('%j\t> ', y, arr); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment