in NodeJS Essentials by (20.8k points)

What is REPL in Node.js?

1 Answer

0 votes
by (32.2k points)

REPL means Read-Eval-Print-Loop. It is a virtual environment that comes with Node.js. We can quickly test our JavaScript code in the Node.js REPL environment.

To launch the REPL in Node.js, just open the command prompt and type node. It will change the prompt to > in Windows and MAC.

Now we can type and run our JavaScript easily. For example, if we type 10 + 20, it will print 30 in the next line.

Related questions

+1 vote
+1 vote
asked May 31, 2020 in NodeJS Essentials by Robindeniel (20.8k points)
+1 vote
asked May 30, 2020 in NodeJS Essentials by SakshiSharma (32.2k points)
0 votes
asked Aug 15, 2021 in APIGEE - API Services by sharadyadav1986 (31.6k points)