js initialize array of set size code example Example: create array initialize size javascript with value new Array(4).fill({}) //[{},{},{},{}]