Well done on finishing Timers and Files.
In this course, you learned how to:
- Run code later without freezing the page, and write functions that remember their own variables
- Schedule, repeat, and cancel timers, and count down from a deadline on the page
- Split text into fields, and fetch JSON and CSV files from the page’s server
- Read a file the user picks, check it, and save a new file for them to keep
- Load data files the app ships with, let users export and import their data, and add timers and timed feedback to a page
In the video, Sam’s finished box goes into the kitchen:
| What Sam does | What Sam’s box shows |
|---|---|
| Opens the box for the first time | The four starters from data/recipes.json, each with its steps, and No saved recipes yet. Showing the starter recipes. |
| Starts Simmer, then Boil the eggs | Both lines counting down at once, such as Simmer: 24:54 left and Boil the eggs: 5:55 left |
| Adds Shakshuka | A fifth row and Shakshuka added. Saved., which fades and is gone two seconds later |
Types egg into Filter |
One redraw once the typing stops: Soft-boiled eggs, 1 recipe shown., and its timer still counting |
Picks ayumi.csv in Import a recipe list |
Ayumi’s three recipes, checked first, and 3 recipes imported from ayumi.csv. Saved. |
| Clicks Export a backup | Chrome saves a new file, recipe-box-backup.json, and the page doesn’t change |