What is REPL?
- REPL stands for Read-Eval-Print-Loop.
- It is a quick and easy way to test simple Node.js/JavaScript code.
- To launch the REPL in terminal(in Mac or Ubuntu) Type node
What is REPL?
- .help - Display help on all the commands
- tab Keys - Display the list of all commands.
- Up/Down Keys - See previous commands applied in REPL.
- .save filename - Save current Node REPL session to a file.
- .load filename - Load the specified file in the current Node REPL session.
- ctrl + c - Terminate the current command.
- ctrl + c (twice) - Exit from the REPL.
- ctrl + d - Exit from the REPL.
- .break - Exit from multiline expression
- .clear - Exit from multiline expression.
Referance : http://www.tutorialsteacher.com/nodejs/nodejs-console-repl
No comments:
Post a Comment