how to populate an empy array with objects js code example Example: javascript fill array const fill = new Array(5).fill(0) console.log(fill) // [ 0,0,0,0,0]