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)- A6% (2)
- B16% (5)
- C3% (1)
- D75% (24)
Community Discussion
No community discussion yet for this question.