File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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.
1010
1111## Example
1212An example of a [ web server] [ ] written with Node.js which responds with
13- ` 'Hello World!' ` :
13+ ` 'Hello, World!' ` :
1414
1515Commands displayed in this document are shown starting with ` $ ` or ` > `
1616to replicate how they would appear in a user's terminal.
@@ -71,7 +71,7 @@ const port = 3000;
7171const 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
7777server .listen (port, hostname, () => {
@@ -94,7 +94,7 @@ Server running at http://127.0.0.1:3000/
9494
9595Now, 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
9898the server is working.
9999
100100Many of the examples in the documentation can be run similarly.
You can’t perform that action at this time.
0 commit comments