Last active
April 20, 2019 23:10
-
-
Save codeBelt/2bc09175d87344c77124c53e185801b9 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
const numberArray = new Array(10).fill(1); | |
console.log(numberArray); |
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
const numberArray = Array.from({length: 100}, (_, index) => index); | |
console.log(numberArray); |
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
const numberArray = [...Array(150).keys()]; | |
console.log(numberArray); |
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
const stringArray = 'i'.repeat(5).split('') | |
console.log(stringArray); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment