initialize array of length 4 with empty string js code example Example: create empty array javascript const myArray1 = [] // or... const myArray2 = new Array()