DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
generate numbers from 1 to 100 to array
Array.from({length: 5}, (v, k) => k+1); // [1,2,3,4,5]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#generate
#numbers
#array
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit