I\'m looking for a way to write some simple scripts in javascript, like I would in ruby. For example, I might write a script like:
var str = \"Hello World\"
Why do you want to do this in javascript? Why not use a language that is suitable for this type of command line environment such as Perl? Javascript's main purpose is to faciltate client-side browser control.