Examveda
Examveda

What is the lifetime of the data stored through localStorage?

A. Permanant

B. Temporary

C. Both Permanant and Temporary at times

D. Cannot store

Answer: Option A

Solution(By Examveda Team)

Data stored through localStorage is permanent: it does not expire and remains stored on the user’s computer until a web app deletes it or the user asks the browser (through some browser-specific UI) to delete it.

Join The Discussion

Related Questions on Document Object Model and Event Handling