nerdexam
Microsoft

98-375 · Question #80

What value does the following JavaScript code fragment store into the variable num? varnum = localStorage.length;

The correct answer is D. number of key-value pairs in local storage. See the full explanation below for the reasoning.

Question

What value does the following JavaScript code fragment store into the variable num? varnum = localStorage.length;

Options

  • Amaximum length of a character string
  • Bpotential capacity of local storage
  • Cnumber of bytes available in local storage
  • Dnumber of key-value pairs in local storage

How the community answered

(32 responses)
  • A
    6% (2)
  • B
    16% (5)
  • C
    3% (1)
  • D
    75% (24)

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice