Q. Consider the code snippet given below
var count = [1,,3];
What is the observation made?
var count = [1,,3];
What is the observation made?
β
Correct Answer: (A)
The omitted value takes “undefined”
Explanation: If you omit a value from an array literal, the omitted element is given the value.