create array javascript fill

JavaScript
const tempArr = new Array(2000).fill({ "tile": "oh fuck this sheet", "content": "some fucked up palce hodler texte here let's do this sheet" })let filledArray = new Array(10).fill({'hello':'goodbye'});const fill = new Array(5).fill(0)
console.log(fill) // [ 0,0,0,0,0]
Source

Also in JavaScript: