dynamically creating multiple repeating elements in javascript code example
Example: 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;
}