function arrayOfLight(x){ myArray = []; for var(i = 0; i<=x; i++){ myArray[i] = i } return myArray; }