how to create an empty array in a javascript object code example Example: create empty array javascript const myArray1 = [] // or... const myArray2 = new Array()