GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: match program and console output in synopsis.md · nodejs/node@d3bc862

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • synopsis.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/synopsis.md‎

Copy file name to clipboardExpand all lines: doc/api/synopsis.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ different options and ways to run scripts with Node.js.
1010

1111
## Example
1212
An example of a [web server][] written with Node.js which responds with
13-
`'Hello World!'`:
13+
`'Hello, World!'`:
1414

1515
Commands displayed in this document are shown starting with `$` or `>`
1616
to replicate how they would appear in a user's terminal.
@@ -71,7 +71,7 @@ const port = 3000;
7171
const server = http.createServer((req, res) => {
7272
res.statusCode = 200;
7373
res.setHeader('Content-Type', 'text/plain');
74-
res.end('Hello World!\n');
74+
res.end('Hello, World!\n');
7575
});
7676

7777
server.listen(port, hostname, () => {
@@ -94,7 +94,7 @@ Server running at http://127.0.0.1:3000/
9494

9595
Now, open any preferred web browser and visit `http://127.0.0.1:3000`.
9696

97-
If the browser displays the string `Hello, world!`, that indicates
97+
If the browser displays the string `Hello, World!`, that indicates
9898
the server is working.
9999

100100
Many of the examples in the documentation can be run similarly.

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.