Dana Reyes tracks her household spending with a small Node script. Her expenses are typed straight into the code, so every new expense means editing the program, and any change it makes to the data while it runs is gone once it ends. In this course, you’ll turn her script into a budget tracker that’s split across files and keeps its data in a JSON file.
A program with more moving parts needs files with one job each, and data that’s still there the next time it runs. JSON turns data into plain text a file can hold. However, a round trip through JSON changes some values, so you’ll learn to fix what comes back. Modules give each part of the program its own file, and a deep copy lets Dana try a what-if plan without touching her real one. You’ll learn how to:
- Turn data into JSON text and back, fixing what JSON changes.
- Save a program’s data in a JSON file and load it again.
- Split a program into modules, with one job per file.
- Predict how modules load and what their importers share.
- Make deep copies and compare records value by value.
Each of the first three sections mixes text lessons and short videos, and ends with an exercise you write in the browser, where automated tests check your code.
In the project, you build Dana’s tracker: load.js reads and writes expenses.json, report.js totals her spending by category and by month, and a thin main.js wires them together. The tracker adds November’s expenses once, saves the list back as JSON, and tries a what-if budget made with structuredClone(), then proves her real budget is unchanged. Then you explain your tracker to the AI mentor, make an unseen change, and take a quiz.
This course is for programmers who can write small Node programs with functions, arrays and objects, and who can copy objects with spread. You’ll need a current Node LTS, a terminal, and any editor.
What’s Included:
- 17 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- 2 Downloadable Resources
- Interactive Quiz to Check Your Progress
- 5 Hands-On Coding Exercises
- Q&A With JavaScript Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths: