array fill method javascript code example
Example 1: fill array with values javascript
let filledArray = new Array(10).fill({'hello':'goodbye'});
Example 2: fill javascript
const a = new Array(100).fill("test");
console.log(a);
Example 3: create array javascript fill
const tempArr = new Array(2000).fill({ "tile": "oh fuck this sheet", "content": "some fucked up palce hodler texte here let's do this sheet" })