const message = "Hello Backbencher!"; console.log(message);
console.log(), that is printed in this console.
We can also open the console window using either of the following shortcuts:
In order to use Node.js, first you need to install Node.js from their website.
After installation, we can verify if Node.js is installed properly by typing
node --version command.
test.js and saved it in the desktop. Next, navigate to Desktop in the terminal and run
When running with Node.js, the
console.log() statement prints the message directly in the terminal.
In order to try our code, we can simply paste the code and run it. Here is a screenshot of Codepen tool.
If you need to save a file, we need to purchase the license.