Skip to Content
JavaScript Intermediate: Write Code That Doesn't Fall Apart When the Data Changes
Intermediate
0 likes
Courses
JavaScript Intermediate: Write Code That Doesn't Fall Apart When the Data Changes

Check Yourself: Organize Code Other People Can Read

Five scenario questions on modules, classes, destructuring and spread. If you miss more than one, reread the lesson that covers it.

Course content

Sign in to save your progress.

Course Home
1. In Node, import { total } from "./cart" fails with ERR_MODULE_NOT_FOUND, and the message asks "Did you mean to import "./cart.js"?". What's wrong?
2. Your new project has "type": "commonjs" in package.json and you want to use import and export. What do you do?
4. const copy = { ...order }; copy.customer.name = "Ben"; What happens to order.customer.name?

About

Five scenario questions on modules, classes, destructuring and spread. If you miss more than one, reread the lesson that covers it.

Duration
5 min
Last update
09/02/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.