Back to course

Node.js & Express Crash Course

Lesson 2 of 5

Now learning

Node.js Modules

20 min

Lesson Content

Split code into modules so files stay small. Practice require/import, exporting functions, and using built-in modules like fs and path. You will move a helper into its own file and import it into your main script.