Dev’s three-plant digest now runs as JavaScript modules, and node digest.js logs/week-12 prints the Python tool’s report.
In this course, you learned how to:
- Give a folder an
index.jsfront door and import it by its full path - Import across a project with
../paths or#names frompackage.json - Find files next to a module with
import.metaand import JSON withwith { type: "json" } - Change a module’s state through a function it exports
- Load a module on demand, or by name, with
await import() - Read CommonJS and use a CommonJS file with a
.cjsextension
Keep and Drop Your Python Habits
Python’s package design carries over, but how files find each other and who may change a value don’t. Each of these habits misfired in the course: