Search
 
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
Name
2+2 =