So, in the node REPL, if I do something stupid, I get stuck in ... hell. I suppose the interpreter is waiting for the statement to be closed, but how can I break out of this?
$ node
> "I did something stupid
...
...
I usually do Ctrl-C and that works fine atleast in Linux .
Ctrl-C and Escape are the most common "break from something" keys .
It works in most of the terminal apps .
As a bonus , in linux I use Ctrl-L to clear Node.js, Python etc REPL .
It is helpful sometimes .