Last active
August 29, 2015 14:11
-
-
Save nulayuhz/af5b4379571ff8ed0ee7 to your computer and use it in GitHub Desktop.
Get Array of 10 Years
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
var year = new Date().getFullYear(); | |
var tenYears = []; | |
for (var i = 0; i < 10; i++) { | |
tenYears.push(year++); | |
} | |
console.log(tenYears); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment