+1 vote
78 views
by (98.9k points)
Explain REPL (READ, EVAL, PRINT, LOOP)

1 Answer

0 votes
by (98.9k points)
 
Best answer
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

Related questions

+1 vote
1 answer 170 views
+1 vote
1 answer 273 views
+1 vote
0 answers 382 views
+1 vote
0 answers 270 views
+1 vote
1 answer 91 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

563 users

...