How to declare an array of 10 elements in JavaScript?
const arr = new Array(10)
const arr[10]
const arr = array(10)
const arr(10)
Correct Answer : A
Which of the following functions sorts the elements of an array?
JavaScript arrays are written with _____.
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]);