What is the output of the following code?
let origArray = new Array(); origArray[0] = new Array("one","two"); origArray[1] = new Array("three","four"); origArray[2] = new Array("five","six"); origArray[3] = new Array("seven","eight"); let newArray = origArray[0].concat(origArray[1],origArray[2],origArray[3]); console.log(newArray[5]);// w w w . j a va 2s .c o m console.log(newArray);
six [ 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight' ]