nodejs class 1 - Alwynblake/seattle-javascript-401n12 GitHub Wiki

Node.js, a program that allows you to apply your JavaScript skills outside of the browser. When Node.js is installed on a system, it provides a program called node, which is used to run JavaScript files. Say you have a file hello.js, containing this code: let message = "Hello world"; console.log(message); You can then run node from the command line like this to execute the program: $ node hello.js Hello world // If you run node without giving it a file, it provides you with a prompt at which you can type JavaScript code and immediately see the result. $ node

1 + 1 2 [-1, -2, -3].map(Math.abs) [1, 2, 3] process.exit(0) $