Created
July 25, 2016 13:55
-
-
Save shinobcrc/bfd2b6ce3ff663e0a9ac522b731bc7da 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
function arrayOfLight(x) { | |
var array = []; | |
for (var i = 0; i <= x; i++) { | |
array.push(i); | |
} | |
return array | |
} | |
alert(arrayOfLight(20)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment