Created
February 6, 2017 05:37
-
-
Save xexi/cc6e9faaf40343f0b146e58387113875 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 n = 5; | |
var nn = [n]; | |
for (var i = 1; i < 5; i++) { | |
nn.push(nn[0] - i); | |
} | |
console.log(JSON.stringify(nn)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment