Examveda
Examveda

Consider the code snippet given below
var count = [1,,3];
What is the observation made?

A. The omitted value takes “undefined”

B. This results in an error

C. This results in an exception

D. None of the mentioned

Answer: Option A

Solution(By Examveda Team)

If you omit a value from an array literal, the omitted element is given the value.

Join The Discussion

Related Questions on Array and Function