nerdexam
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)
  • A
    9% (3)
  • B
    6% (2)
  • C
    82% (27)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 98-363 Practice