File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ different options and ways to run scripts with Node.js.
10
10
11
11
## Example
12
12
An example of a [ web server] [ ] written with Node.js which responds with
13
- ` 'Hello World!' ` :
13
+ ` 'Hello, World!' ` :
14
14
15
15
Commands displayed in this document are shown starting with ` $ ` or ` > `
16
16
to replicate how they would appear in a user's terminal.
@@ -71,7 +71,7 @@ const port = 3000;
71
71
const server = http .createServer ((req , res ) => {
72
72
res .statusCode = 200 ;
73
73
res .setHeader (' Content-Type' , ' text/plain' );
74
- res .end (' Hello World!\n ' );
74
+ res .end (' Hello, World!\n ' );
75
75
});
76
76
77
77
server .listen (port, hostname, () => {
@@ -94,7 +94,7 @@ Server running at http://127.0.0.1:3000/
94
94
95
95
Now, open any preferred web browser and visit ` http://127.0.0.1:3000 ` .
96
96
97
- If the browser displays the string ` Hello, world ! ` , that indicates
97
+ If the browser displays the string ` Hello, World ! ` , that indicates
98
98
the server is working.
99
99
100
100
Many of the examples in the documentation can be run similarly.
You can’t perform that action at this time.
0 commit comments