Will be helpful for absolute beginners
Although, you have got the answer, just wanted to point out that the node
command (without any parameters) will start node in REPL read-eval-print-loop mode to execute raw javascript code.
Another way to use node
command is by providing it a js
file as a parameter. This is how we mostly use it.