array of length 3 javascript code example Example: js array of length //initializes an empty array of length 4 new Array(4);