js initialize array with size code example
Example 1: js init array length
new Array(4);
Example 2: create array initialize size javascript
const array = new Array(4);
array.length //4
Example 3: create array initialize size javascript with value
new Array(4).fill({})
//[{},{},{},{}]