0% found this document useful (0 votes)
34 views2 pages

Assi 11

Node.js comes with a Read-Eval-Print-Loop (REPL) virtual environment that provides an interactive command line interface for testing JavaScript code. The REPL can be launched from the terminal and offers commands like .help to display help, tab to list commands, up/down arrows to see previous commands, and Ctrl+C to terminate the current command or exit the REPL. Additionally, the .save and .load commands allow saving the current REPL session to a file and loading a saved file.

Uploaded by

project mission
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views2 pages

Assi 11

Node.js comes with a Read-Eval-Print-Loop (REPL) virtual environment that provides an interactive command line interface for testing JavaScript code. The REPL can be launched from the terminal and offers commands like .help to display help, tab to list commands, up/down arrows to see previous commands, and Ctrl+C to terminate the current command or exit the REPL. Additionally, the .save and .load commands allow saving the current REPL session to a file and loading a saved file.

Uploaded by

project mission
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 11

PRN NO: 2017BTECS00041

What is REPL?

Node.js comes with virtual environment called REPL. REPL stands for Read-
Eval-Print-Loop. It is a quick and easy way to test simple Node.js/JavaScript
code.

Launching REPL terminal is shown in following figure:

Q. 1 Important REPL commands:

1. .help  Display help on all the commands

2. Tab key Display the list of all commands.

3. Up or Down keys  see previously applied commands


4. Ctrl+c  Terminate the current command
5. Ctrl+c(double)  exit from REPL terminal

6. .clear  exit from multiline expression

7. .break  exit from multiline expression


Q. 2 Save and Load Node.js REPL commands.


1. .save filename save current node REPL session to file

2. To load .load filename command is used 

You might also like