JavaScript Intermediate: Write Code That Doesn't Fall Apart When the Data Changes
This is for people who can already make a page react with JavaScript and now need code that survives real projects: Node and npm, modules, classes, real data, waiting for APIs, and tests. You will set up projects that install the same way on every machine, split code into files other people can read, handle JSON and dates without losing data or a day, and prove your code works before a customer finds out it doesn't. If you skip this level, your code works on your machine with your sample data, and breaks the first time the data changes.
Course access
-
Set Up Projects That Don't Break Each Other (empty)3Lessons · 15 min
-
Node.js and npm: Running JavaScript Outside the Browser
Run JavaScript files with Node, see what's different from the browser, install a package with npm, and use npm scripts. After this, you can run any project's commands without guessing.
5 min -
package.json and Lock Files: Same Install Every Time
What package.json and package-lock.json record, what ^ means in a version, and when to use npm install or npm ci. After this, your project installs the same versions on every machine.
5 min -
-
-
Organize Code Other People Can Read (empty)4Lessons · 20 min
-
JavaScript Modules: import, export and Splitting One Big File
Split code into files with export and import, choose named or default exports, and run modules in Node and the browser. After this, you can break up a big file by job instead of by size.
5 min -
JavaScript Classes: When an Object Literal Is No Longer Enough
Write a class with a constructor, methods, a private field and a getter, and know when a plain object is still the better choice. After this, the rules about your data live in one place.
5 min -
Destructuring and Spread Without the Confusion
Pull values out of objects and arrays, use options objects with defaults, and copy data with spread, including the shallow-copy trap. After this, modern JavaScript stops looking like punctuation.
5 min -
-
-
Work With Real Data (empty)4Lessons · 20 min
-
Array Methods: map, filter, reduce and When a Loop Is Clearer
Use map, filter and reduce on a list of orders, plus find, some and toSorted, and know when a for...of loop reads better. After this, you can answer report questions in a few clear lines.
5 min -
Working With JSON: parse, stringify and What Breaks
Turn JSON text into data and back, read the real parse error messages, and see what stringify quietly drops or changes. After this, a bad response gets caught instead of crashing the page.
5 min -
Dates in JavaScript Without Losing a Day
Why a Date is a moment and not a day, how the off-by-one bug happens in both directions, and how to store, build and show dates safely. After this, a due date stays on the day the customer picked.
5 min -
-
-
Waiting for Things (empty)3Lessons · 15 min
-
Callbacks to Promises: Why the Code Runs Out of Order
Why JavaScript doesn't wait, how callbacks and promises handle results that arrive later, and the three promise states. After this, "undefined, then the data" stops being a mystery.
5 min -
async/await and fetch: Calling a Real API
Call a real API with async/await and fetch, check response.ok because a 404 doesn't throw, and run independent requests together. After this, your API calls fail loudly instead of showing undefined.
5 min -
-
-
Prove It Works Before Someone Else Finds Out (empty)3Lessons · 15 min
-
try/catch and Custom Errors
Use try, catch and finally, catch only what you can handle, write your own error classes, and catch errors from async code. After this, expected problems get handled and real bugs still show up.
5 min -
Your First Tests With Vitest
Set up Vitest, write four tests for cart math, break one on purpose and read the failure. After this, you can check your money math in milliseconds instead of by clicking.
5 min -
-
-
Final Check: JavaScript Intermediate (empty)1Lessons · 15 min
-
About
This is for people who can already make a page react with JavaScript and now need code that survives real projects: Node and npm, modules, classes, real data, waiting for APIs, and tests. You will set up projects that install the same way on every machine, split code into files other people can read, handle JSON and dates without losing data or a day, and prove your code works before a customer finds out it doesn't. If you skip this level, your code works on your machine with your sample data, and breaks the first time the data changes.
- Responsible
- Jay P
- Last Update
- 09/08/2026
- Completion Time
- 1 h 40 min
- Members
- 1
Reviews
Sign in to write a reviewComments
Sign in to commentNo comments yet.