REPL
Learn about the REPL module in Node.js.
We'll cover the following
Read Evaluate Print Loop (REPL)
As the heading suggests, REPL does exactly what it stands for. You may already have used a REPL environment before but might not have known about it. Terminals, and even the console on Google Chrome, are REPL environments. A REPL environment can be a quick and easy way to test some code. Think of it as a rough paper to run some code quickly. The REPL reads the code, evaluates it, and prints the output in the next line. This happens in a loop until the REPL exits. This allows us to experiment with the code without having to compile it. The Node.js REPL can be accessed from the command-line, or we can customize and create our own REPL environment using the repl
module.
Get hands-on with 1400+ tech skills courses.