πŸ“Š JavaScript
Q. 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
πŸ’¬ Discuss
βœ… 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.

Explanation by: Mr. Dubey
If you omit a value from an array literal, the omitted element is given the value.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
166
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate