Search⌘ K
AI Features

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.

REPL environment

Let’s try the REPL node environment by pressing “Click to Connect” on the provided terminal. After connecting, follow the steps below:

  1. 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.
  2. Core JavaScript
...