Skip to content

Commit

Permalink
Add additional information for running mjs code example (#7026)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincool committed Sep 5, 2024
1 parent 1a62c01 commit 51ddeec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ server.listen(port, hostname, () => {
```

To run this snippet, save it as a `server.js` file and run `node server.js` in your terminal.
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.

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

Expand Down

0 comments on commit 51ddeec

Please sign in to comment.