I get quite frustrated running JS by pasting into Chrome/FF and sometimes I like to keep everything local. These are some notes on using Apple's built in intrerpreter, node or phantom.
sudo ln -s /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc /usr/bin
jsc
jsc hello.js
brew update && brew install node
node
node hello.js
brew update && brew install phantomjs
Bring up the REPL:
phantomjs
Run a script:
phantomjs hello.js