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…
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)- A84% (26)
- B6% (2)
- E10% (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
Community Discussion
No community discussion yet for this question.