Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to create an array of specific length in javascript

const array = new Array(3).fill(0)
Source by 2ality.com #
 
PREVIOUS NEXT
Tagged: #create #array #specific #length #javascript
ADD COMMENT
Topic
Name
3+8 =