Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var output = []
var arrayOfLight = function (x) {
for (i = 0; i <= x; i++){
output.push(i);
}
return output;
}
console.log(arrayOfLight(10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment