Created
May 30, 2016 15:31
-
-
Save dsomel21/288b4bf395299b2ac8390bdde79aca95 to your computer and use it in GitHub Desktop.
Main method for Ultra Lightbeams
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 ultraLightBeam = []; | |
for (var i = 0; i <= x; i++) { | |
ultraLightBeam.push(i); | |
} | |
console.log(ultraLightBeam); | |
} | |
var amount = prompt("Enter the Ultraight Beamness level!"); | |
arrayOfLight(amount); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<script src="array_of_light.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment