Vidyalelo
JavaScript · Q168

Document Object Model And Event Handling

Programming · JavaScript · question 168

Q168

What is the lifetime of the data stored through localStorage?

A.
Permanant
Answer
B.
Temporary
C.
Both Permanant and Temporary at times
D.
Cannot store

Answer: Option A

Solution

Answer: Option A
Solution:
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.