javascript .fill code example
Example 1: array fill
new Array(5).fill('element')
// ["element", "element", "element", "element", "element"]
Example 2: fill javascript
const a = new Array(100).fill("test");
console.log(a);
Example 3: array js fill
let filledArray = new Array(10).fill({'hello':'goodbye'});