If you have a Mac you can get
You could also run one of your .js script by adding its name as an argument for jsc, like this:
Notice: I use
console.log() during development but jsc needs the
debug() function instead.
On Ubuntu you have some nice ECMAScript shells at your disposal. Between them it's worth to mention SpiderMonkey. You can add It by
sudo apt-get install spidermonkey
On Windows as other people said you can rely on
wscript directly built on the OS.
UPDATE July 2021: You can also install and use the brilliant QuickJS which on OS X could be installed via
brew install quickjs. Then an interactive console will be available at your propmt with