What will be the output of the following JavaScript code?
const myArray = ['h', 'e', 'l', 'l', 'o']; document.write(myArray[0]); document.write(myArray[1]);
he
undefined
ValueError
TypeError
Correct Answer : A
What is true about Arrays?
What is the final value of array below?
const array = [1, 2, 3] const extension = [4, 5, 6] array = [...extension, ...array]