REPL (READ, EVAL, PRINT, LOOP) is a computer environment similar to Shell (Unix/Linux) and command prompt. Node comes with the REPL environment when it installs. The system interacts with the user through outputs of commands/expressions used.
Uses: Writing and debugging codes.
The working of REPL can be understood from its full form:
Read: It reads the inputs from users and parses them into JavaScript data structure. It is then stored in memory.
Eval: The parsed JavaScript data structure is evaluated for the results.
Print: The result prints after the evaluation.
Loop: Loops the input command. To come out of NODE REPL, press ctrl+c twice