Interactive Study Module

CommonJS (require) vs ES Modules (import)

By Bravion EDU NODEJS Team
6 min read
Lesson Overview: CommonJS (require) vs ES Modules (import)

NODEJS • Level 1: Beginner Fundamentals

This is lesson 3 of 19 in the NODEJS track (Level 1: Beginner). Open-source, cross-platform JavaScript runtime environment executing JS code outside a web browser.

Lesson write-up in progress

The full written walkthrough for "CommonJS (require) vs ES Modules (import)" has not been published yet. Use the sandbox below to experiment, and use the module outline to move to neighbouring lessons.

Try It Yourself Sandbox
Edit code & run live
3
Loading...

Click "Run Code" to compile and execute program output...

Step 5: Remember This! (Memory Anchors)

Where This Lesson Fits

  • Module: Level 1: Beginner Fundamentals (5 lessons)
  • Previous lesson: Node REPL & Running Scripts
  • Next lesson: Process, Environment Variables & Global Object
Module Progress Checkpoint

Ready to verify your understanding?

Click below to mark this study unit completed and claim your +50 XP reward.