Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js fill array with count elements

Array(3).fill(4);                // [4, 4, 4]
 
PREVIOUS NEXT
Tagged: #js #fill #array #count #elements
ADD COMMENT
Topic
Name
9+7 =