REPL Terminal in Node.js

REPL stands for Read Eval Print Loop and it represents a computer environment like a Windows Console or Unix/Linux shell where a command is entered and the system responds with an output in an interactive mode.

Node.js or Node comes bundled with a REPL environment.

It performs the following tasks.

  • Read - Read user's input, parse the input into Javascript data-structure and store in memory.
  • Eval - Takes and evaluates the data structure.
  • Print - Prints the result.
  • Loop - Loops the above command until the user presses Ctrl + C twice.

The REPL feature of Node is very useful in experimenting with Node.js codes and to debug Javascript codes.


Popular posts from this blog

About 12 Alwars

Post thumbnails from external URLs don’t appear in Blogger. How to resolve?

What is the unicode character for the close symbol?