diff --git a/pages/command-line/how-to-use-the-nodejs-repl.md b/pages/command-line/how-to-use-the-nodejs-repl.md index 7b4a19c..00373cd 100644 --- a/pages/command-line/how-to-use-the-nodejs-repl.md +++ b/pages/command-line/how-to-use-the-nodejs-repl.md @@ -87,13 +87,12 @@ If you press the `up` arrow key, you will get access to the history of the previ The REPL has some special commands, all starting with a dot `.`. They are -- `.help`: shows the dot commands help -- `.editor`: enables editor mode, to write multiline JavaScript code with ease. Once you are in this mode, enter ctrl-D to run the code you wrote. -- `.break`: when inputting a multi-line expression, entering the .break command will abort further input. Same as pressing ctrl-C. -- `.clear`: resets the REPL context to an empty object and clears any multi-line expression currently being input. -- `.load`: loads a JavaScript file, relative to the current working directory -- `.save`: saves all you entered in the REPL session to a file (specify the filename) -- `.exit`: exits the repl (same as pressing ctrl-C two times) +- `.help`: shows the dot commands help. +- `.editor`: enters editor mode, to write multiline JavaScript code. +- `.break` / `.clear`: exits multi-line code like functions. Same as pressing CTRL-C. +- `.load`: loads a JavaScript file, relative to the current working directory. +- `.save`: saves all commands you entered in the session to a file. +- `.exit`: exits the REPL (same as pressing CTRL-C twice). The REPL knows when you are typing a multi-line statement without the need to invoke `.editor`.