1. Home
  2. Computer Science MCQs
  3. HTML
  4. Which storage object is used for storing the data with no…

Added 20 Jan 2024

Which storage object is used for storing the data with no expiry date?

  1. Session storage
  2. local storage Correct answer
  3. mass storage
  4. stack storage

Correct answer

B. local storage

14 views

MCQSEXAM

Explanation

localStorage stores data with no expiry date: the data stays in the browser even after the tab or the browser is closed, until a script or the user clears it.

sessionStorage works the same way but is wiped when the tab closes. Both are part of the HTML5 Web Storage API and typically allow about 5 MB per origin.

For more solved questions like this one, see Computer Science MCQs on MCQsExam.com.

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 HTML MCQs

Practise all HTML MCQs

Similar MCQs