Realated Questions
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]);
What will be the output of the following JavaScript code?
let cars = ['Honda', 'Hyundai']; cars.push('Mahindra'); console.log(typeof cars + " " + cars);