Microsoft
98-363 · Question #48
A JavaScript code example contains the following: varmyArray = []; myArray[0] = 'A'; myArray[1] = 'B'; myArray[5] = 'C'; What is the value of myArray [3]?
The correct answer is C. undefined. See the full explanation below for the reasoning.
Question
A JavaScript code example contains the following:
varmyArray = []; myArray[0] = 'A'; myArray[1] = 'B'; myArray[5] = 'C'; What is the value of myArray [3]?
Options
- A-1
- B0
- Cundefined
- Dnull
How the community answered
(33 responses)- A9% (3)
- B6% (2)
- C82% (27)
- D3% (1)
Community Discussion
No community discussion yet for this question.