nerdexam
Microsoft

98-375 · Question #24

Which three components define the URL used for localStorage data in HTML5? (Choose three.)

The correct answer is A. scheme C. hostname D. unique port. localStorage is also the same as globalStorage[location.hostname], with the exception of being scoped to an HTML5 origin (scheme + hostname + non-standard port) and localStorage being an instance of Storage - HTML5 local storage saves data in string form as key-value pairs. If…

Understanding Game Programming

Question

Which three components define the URL used for localStorage data in HTML5? (Choose three.)

Options

  • Ascheme
  • Buser credentials
  • Chostname
  • Dunique port
  • Equery

How the community answered

(31 responses)
  • A
    84% (26)
  • B
    6% (2)
  • E
    10% (3)

Explanation

localStorage is also the same as globalStorage[location.hostname], with the exception of being scoped to an HTML5 origin (scheme + hostname + non-standard port) and localStorage being an instance of Storage - HTML5 local storage saves data in string form as key-value pairs. If the data you wish to save is not string data, you are responsible for conversion to and from string when using LocalStorage.

Topics

#HTML5#localStorage#URL components#web storage

Community Discussion

No community discussion yet for this question.

Full 98-375 Practice