1. Home
  2. Computer Science MCQs
  3. Javascript
  4. What is the purpose of the "localStorage" object in…

Added 28 Jan 2024

What is the purpose of the "localStorage" object in JavaScript?

  1. Storing session data on the server
  2. Storing data that persists across browser sessions Correct answer
  3. Managing local databases
  4. Fetching remote data

Correct answer

B. Storing data that persists across browser sessions

16 views

MCQSEXAM

Explanation

"localStorage" allows developers to store key-value pairs locally in a user's browser, providing persistent storage.

Video explanation

Reference

https://www.w3schools.com/js/default.asp

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Javascript MCQs

Practise all Javascript MCQs

Similar MCQs