Browser Storage Quiz
Multiple Choice Easy
Question
Which storage API persists data with no expiration until explicitly cleared?
Hint
It is the 'local' one — data stays even after the browser is closed.
Explanation
localStorage stores data with no expiration — it persists across browser sessions until explicitly removed. sessionStorage is cleared when the tab closes. Cookies can have an expiration but are sent with every HTTP request. The Cache API is for storing Request/Response pairs.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.