Explore the Node.js REPL Environment
Explore the Node.js REPL environment to interactively run JavaScript code outside the browser. Understand basic commands, access built-in objects, and practice creating scripts in a terminal-based project folder.
We'll cover the following...
We'll cover the following...
REPL environment
Let’s try the REPL node environment by pressing “Click to Connect” on the provided terminal. After connecting, follow the steps below:
- Type “node” into the terminal. This will open up a REPL (Read-Evaluate-Print-Loop) where we can run individual node statements using JavaScript. The command stays in idle mode, waiting for us to input code.
- Core JavaScript