Answers for "dynamically creating multiple repeating elements in javascript"

0

dynamically creating multiple repeating elements in javascript

function fillArray(value, len) {
  var arr = [];
  for (var i = 0; i < len; i++) {
    arr.push(value);
  }
  return arr;
}
Posted by: Guest on March-23-2021

Code answers related to "dynamically creating multiple repeating elements in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language