Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is the observation made in the following JavaScript code?
var count = [1,,3];

What is the observation made in the following JavaScript code?
var count = [1,,3];
a) The omitted value takes “undefined”
b) This results in an error
c) This results in an exception
d) The omitted value takes an integer value

Answer: a
Explanation: Array is defined with a null value when no value is mentioned. If you omit a value from an array literal, the omitted element is given an undefined value.

Join The Discussion