O'Reilly logo
  • Emilio Cassandro thinks this is interesting:

We'll just paste this code in the server.js file, save it, and go back into our command line. We'll type node and then the name of the file; you can type either server or server.js:

node server.js

You can see that the command is running:

From

Cover of Learn Node.js by Building 6 Projects.

Note

this is wrong