javascript local storage Flashcards
1
Q
How to you store data in localStorage?
A
set item method
2
Q
How to you retrieve data from localStorage?
A
get item method
3
Q
What data type can localStorage save in the browser?
A
domstrings which are just strings
4
Q
When does the ‘beforeunload’ event fire on the window object?
A
right before the page reloads or closes