REPL commands
These commands help to manipulate or communicate with the node.js commands on the REPL
Commands | Description |
.help | List out all the commands |
Ctrl + C | To terminate the command |
Ctrl + C {twice} / Ctrl + D | To exit the command prompt |
Tab | Displays all functions and objects. |
.clear | To clear multi-lines expression |
Executing REPL Commands
Reference: https://nodejs.dev/learn/how-to-use-the-nodejs-repl
How to Open Node.js Command Prompt ?
Node.js enables the execution of JavaScript code outside a web browser. It is not a framework or a programming language, but rather a backend JavaScript runtime environment that allows scripts to be executed outside the browser. You can download Node.js from the web by visiting the link “Download Node” and downloading the latest version onto your machine. In this article, we will discuss how to open Node.js using a command prompt.
Table of Content
- Installing Node.js on the machine
- Opening Node Command Prompt
- Performing some operations on REPL
- REPL commands