JS Local Storage Flashcards

1
Q

How to you store data inlocalStorage?

A

localStorage.setItem( ) method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to you retrieve data fromlocalStorage?

A

localStorage.getItem( ) method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What data type canlocalStoragesave in the browser?

A

‘String’ type data (local storage needs serialized data )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When does the’beforeunload’event fire on thewindowobject?

A

Before the page unloads

How well did you know this?
1
Not at all
2
3
4
5
Perfectly