You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alistair Blake edited this page Feb 14, 2019
·
1 revision
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