0 votes
in JavaScript by
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) The omitted value takes an integer value

1 Answer

0 votes
by

Answer:-  A

Reason: 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.

Related questions

0 votes
asked Oct 9, 2022 in JavaScript by Robin
0 votes
asked Dec 1, 2022 in JavaScript by john ganales
...