Last active
June 13, 2018 03:57
-
-
Save AminBusiness/52dfef86193652e697f8ed0aed86a5b5 to your computer and use it in GitHub Desktop.
JS Bin// source https://jsbin.com/wamaves
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
function main() { | |
var lcv; | |
var years = new Array(11); //Create an Array object | |
document.write("This year and the next 10 are:<br>"); | |
for (var i = 0; i < years.length; i++ ) | |
{ | |
years[i] = i + 2016; | |
document.write("year[" + i + "] = "+ years[i] + "<br />"); | |
} | |
} | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">function main() { | |
var lcv; | |
var years = new Array(11); //Create an Array object | |
document.write("This year and the next 10 are:<br>"); | |
for (var i = 0; i < years.length; i++ ) | |
{ | |
years[i] = i + 2016; | |
document.write("year[" + i + "] = "+ years[i] + "<br />"); | |
} | |
}</script></body> | |
</html> |
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 main() { | |
var lcv; | |
var years = new Array(11); //Create an Array object | |
document.write("This year and the next 10 are:<br>"); | |
for (var i = 0; i < years.length; i++ ) | |
{ | |
years[i] = i + 2016; | |
document.write("year[" + i + "] = "+ years[i] + "<br />"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment