Isi array dengan nilai javascript
let filledArray = new Array(10).fill({'hello':'goodbye'});
Cute Crossbill
let filledArray = new Array(10).fill({'hello':'goodbye'});
fill(val);
fill(val, start); //fills array with value of val at index start
fill(val, start, end); //fills array with value of val at index start to index end