Skip to content

Instantly share code, notes, and snippets.

@dsomel21
Created May 30, 2016 15:31
Show Gist options
  • Save dsomel21/288b4bf395299b2ac8390bdde79aca95 to your computer and use it in GitHub Desktop.
Save dsomel21/288b4bf395299b2ac8390bdde79aca95 to your computer and use it in GitHub Desktop.
Main method for Ultra Lightbeams
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);
<!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