What is the purpose of the "localStorage" object in JavaScript?
-
A
Storing session data on the server
-
B
Storing data that persists across browser sessions
Correct answer
-
C
Managing local databases
-
D
Fetching remote data
Correct answer
B. Storing data that persists across browser sessions
16 views
Explanation
"localStorage" allows developers to store key-value pairs locally in a user's browser, providing persistent storage.
Video explanation
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ