Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to print array of 52/ print it 5 times with different value in javascript

function fillArray(value, len) {
  var arr = [];
  for (var i = 0; i < len; i++) {
    arr.push(value);
  }
  return arr;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #array #print #times #javascript
ADD COMMENT
Topic
Name
1+1 =