Sam’s recipe box works fine until someone reloads the page. Then every recipe they added is gone, because the app only kept its data in memory. In this course, you’ll fix that, and then make sure the fix holds up when things go wrong.
You’ll start by getting comfortable with the data itself: looping over objects, following paths into nested records like a recipe’s ingredients, and processing lists and grids. Then you’ll turn that data into JSON text, save it with localStorage, and load it again on every visit.
Finally, you’ll handle the saves that break things: catching a damaged save with try and catch, upgrading old saves with a version number, and coping when storage is full or blocked.
Along the way, you’ll practice in coding exercises, check yourself with a quiz, and finish with a project where Sam’s recipe box remembers everything, whatever it finds in storage.
This course is for programmers who already know JavaScript basics, including arrays of objects, and can build forms and redraw a page from its data. You’ll work in vanilla JavaScript in Chrome or Edge, with an editor and a local server, and no framework.
What’s Included:
- 22 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- 2 Downloadable Resources
- Interactive Quiz to Check Your Progress
- 6 Hands-On Coding Exercises
- Q&A With JavaScript Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths: