Created
July 25, 2016 18:04
-
-
Save davidhaley/f81c3de79a090fbe3a9720cacc12260c to your computer and use it in GitHub Desktop.
Array of Light
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
var array = []; | |
var arrayOfLight = function(x) { | |
for (i = 0; i < (x+1); i++) { | |
array.push(i); | |
} | |
console.log(array); | |
}; | |
arrayOfLight(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment