Skip to content

Commit c17a66c

Browse files
splincooljoeeames
authored andcommitted
Add additional information for running mjs code example (nodejs#7026)
1 parent 2f5a3d4 commit c17a66c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ server.listen(port, hostname, () => {
5959
```
6060

6161
To run this snippet, save it as a `server.js` file and run `node server.js` in your terminal.
62+
If you use mjs version of the code, you should save it as a `server.mjs` file and run `node server.mjs` in your terminal.
6263

6364
This code first includes the Node.js [`http` module](https://nodejs.org/api/http.html).
6465

0 commit comments

Comments
 (0)