Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript create new array with default values by one line

console.log(Array.from(Array(200), (x, index) => index + 1))
 
PREVIOUS NEXT
Tagged: #javascript #create #array #default #values #line
ADD COMMENT
Topic
Name
9+2 =