I've found some online interactive Javascript editors, but I wonder if there is a local equivalent as a gem that lets me test Javascript just like IRB and Rails console in Mac?
+2
A:
Mozilla provides Rhino shell. Please note that it is based on an open source version of JavaScript built on Java.
Edit:
Since you are on a mac, you can use jsc which should be installed in: /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc
.
Found this little gem of info on this page.
Brian
2010-08-23 20:14:59
nice find! seems like exactly what the OP wants
SB
2010-08-23 20:42:37
OP = Original Poster?
never_had_a_name
2010-08-23 21:51:55
The problem is that I dont use TextMate=) But nice link though +1
never_had_a_name
2010-08-23 21:52:39
@ajsie: Yep, see [Stack Overflow Glossary - Dictionary of Commonly-Used Terms](http://meta.stackoverflow.com/questions/40353/stack-overflow-glossary-dictionary-of-commonly-used-terms)
Marcel Korpel
2010-08-23 22:47:58
@ajsie you don't need to use textmate. Just run it in the terminal as you would run irb.
Brian
2010-08-24 00:54:11