CommonJS
Last updated
What is CommonJS?
CommonJS modules are the original way to package JavaScript code for Node.js. Node.js also supports the ESModules standard used by browsers and other JavaScript run-times, but CJS is still widely used in backend Node.js applications. Sometimes these modules will be written with a .cjs extension.
Free resources to learn CommonJS
More in stage 13: Using (this) keyword
CommonJS: common questions
Can I learn CommonJS in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain CommonJS in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this CommonJS tutorial for beginners?
It is lesson 98 of 124 in the free JavaScript roadmap, in stage 13, Using (this) keyword. If you are new to JavaScript, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.