Question:

What is REPL in context of Node?

Answer:

REPL stands for Read Eval Print Loop and it represents a computer environment like a window console or unix/linux shell where a command is entered and system responds with an output. Node.js or Node comes bundled with a REPL environment. It performs the following desired tasks.

  • Read - Reads user's input, parse the input into JavaScript data-structure and stores in memory.

  • Eval - Takes and evaluates the data structure

  • Print - Prints the result

  • Loop - Loops the above command until user press ctrl-c twice.


Keywords:

© 2017 QuizBucket.org