create array with many empty objects js code example Example: create empty array javascript const myArray1 = [] // or... const myArray2 = new Array()