Created
April 21, 2018 21:24
-
-
Save dance2die/042c3f009b4836d3673fe385f0976321 to your computer and use it in GitHub Desktop.
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 rangeDemo() { | |
const oneToTen = Array(10) | |
.fill() | |
.map((_, i) => i + 1); | |
WriteLine(`One to Ten => ${oneToTen.join(",")}`); | |
const randomRange = Array(3) | |
.fill() | |
.map((_, i) => i + 999); | |
WriteLine(`Three numbers from 999 => ${randomRange.join(",")}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment