REPL stands for Read, Eval, Print, and Loop. Node.js also provides a REPL environment for quicky testing and debugging Node.js code. You can also store all the commands executed on Node REPL by setting the NODE_REPL_HISTORY environment variable. Node.js REPL will store all commands to the file set with this variable export NODE_REPL_HISTORY=/var/log/node-repl.log Use CTRL + C + C to exit from REPL console. Start REPL Console Run command node on your system console and this will provide you REPL prompt (>) for Node.js. Where you can run and test…
Read More