Module 3.8 — Saving and Loading Data
Quarter 1 · Weeks ? · Environment: console
Lessons in this module
Estimated: ~4 hr 41 min
- Slides3.8.1Slides: Saving and Loading Data~5 min
- Reading3.8.2Reading: Data Has to Outlive the Program~10 min
- Worked Example3.8.3Worked Example: Readable Output vs. What Doesn't Survive~10 min
- Reading3.8.4Reading: `JSON.stringify` — Object to Text~10 min
- Reading3.8.5Reading: Readable Output~10 min
- Reading3.8.6Reading: What Does Not Survive~10 min
- Assignment3.8.7Lab: Stringify an Object and Spot What Got Dropped~10 min
- Reading3.8.8Reading: `JSON.parse` — Text Back to Object~10 min
- Worked Example3.8.9Worked Example: A Round Trip~10 min
- Assignment3.8.10Lab: Round-Trip an Object Through JSON~10 min
- Assignment3.8.11Lab: Round-Trip an Array of Objects~15 min
- Reading3.8.12Reading: Parsing Can Fail~10 min
- Worked Example3.8.13Worked Example: `try`/`catch` Around a Bad Parse~10 min
- Assignment3.8.14Lab: Handle a Malformed JSON String~12 min
- Reading3.8.15Reading: Saving by Key~10 min
- Worked Example3.8.16Worked Example: The Whole Pattern~12 min
- Flowchart3.8.17Chart the Code: Save/Load Round Trip End to End~20 min
- Assignment3.8.18Lab: Save a State Object by Key~10 min
- Assignment3.8.19Lab: Load and Restore a Saved State~12 min
- Reading3.8.20Reading: Why There Is No `open()` Here~10 min
- Worked Example3.8.21Worked Example: What the Browser Sandbox Actually Allows~10 min
- Assignment3.8.22Lab: Saving-and-Loading Capstone~30 min
- Assignment3.8.23Lab: Adapt the Pattern to a List~15 min
- Quiz3.8.24Saving and Loading Data~10 min