Saving State in the Browser Quiz
Interactive Quiz ⋅ 12 Questions
By Stephen Gruppetta
In this quiz, you’ll test your understanding of Saving State in the Browser.
By working through this quiz, you’ll revisit how to loop over an object and check its keys, what happens off the edge of a grid, what JSON accepts and what a round trip through it changes, where a localStorage save lives, which lines run when code in try throws or returns, where to catch an error, and what the browser keeps.
Most questions show a short piece of Sam’s recipe box and ask what the Console or the page shows when it runs in Chrome or Edge. Good luck!
The quiz contains 12 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!
Related Resources
Course
Saving State in the Browser
Make a browser app remember its data across reloads. Save nested objects as JSON in localStorage, load them on every visit, and keep the app working when a save is missing, damaged, or in an older shape.