Class 1 Flashcards

1
Q

[ {…}, {…}]

A

An array with 2 objects inside of the array

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

What is local storage?

A

Property that allows JS websites and apps to store key-value pairs in a web browser with no expiration date. The stored data will persist even after user closes the browser or restart the computer.
Allows you to store data across browser sessions

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

How to put item into local storage?

A

localStorage.setItem(“bestFriend”, “Bob”)

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

How to get item out of local storage?

A

localStorage.getItem(“bestFriend’)

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

How to remove item in local storage?

A

localStorage.removeItem(“bestFriend”, “Bob”)

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

How to remove all in local storage?

A

localStorage.clear()

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

How to access localStorage?

A

Right click, inspect, application

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