Skip to content

Commit 4204acd

Browse files
authored
Update introduction-to-nodejs.md
Adding info about some terms that aren't explained anywhere in this intro tutorial page. Feel free to modify as desired--I just want this page to explain what CJS, ESM, and .mjs mean before using those terms. Signed-off-by: Jed Hartman <logos-github@kith.org>
1 parent 8c5a7dd commit 4204acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/site/pages/en/learn/getting-started/introduction-to-nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In Node.js the new ECMAScript standards can be used without problems, as you don
2222

2323
## An Example Node.js Application
2424

25-
The most common example Hello World of Node.js is a web server:
25+
The most common example Hello World of Node.js is a web server. You can choose between two versions of this example: one using the CommonJS (CJS) module system, using the filename extension `.js` or `.cjs`, and another using the ES Modules (ESM) system, using the filename extension `.mjs`. For more information, see [Understanding MJS and CJS](https://rgbstudios.org/blog/modules-explained-mjs-cjs).
2626

2727
```cjs
2828
const { createServer } = require('node:http');

0 commit comments

Comments
 (0)