Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/getting-started/introduction-to-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,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.
If you use the 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 Expand Up @@ -92,7 +92,7 @@ res.setHeader('Content-Type', 'text/plain');
and we close the response, adding the content as an argument to `end()`:

```js
res.end('Hello World\n');
res.end('Hello World');
```

If you haven't already done so, [download](https://nodejs.org/en/download) Node.js.
Loading