menu search
brightness_auto
more_vert
Explain REPL (READ, EVAL, PRINT, LOOP)
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
 
verified
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
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

Related questions

thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
0 answers
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
0 answers
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer

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

648 users

...