Question 15
Consider the following Script embedded in an HTML document.
let x = [100, 'x', num => num + 1];
for (const i = 0; i<x.length; i++) { console.log(i, x[i], typeof(x[i]))}Which of the following statement is correct, if the HTML document is rendered using a browser?
It will display the indices, values and types of all the items of the array.
It will throw error on the console for the very first iteration.
It will display the index, value and type of the value for the first item of array and then will throw error for the next value.
None of these.