Re:Yes, I know how to write programs. How do I *run* them?
by pewpew on Thursday June 30, 2011 @09:43AM
(#2713957)
you fail to understand that javascript was meant to run inside a browser. inside any html page just add script tags and execute your script. you don't need a webserver to run javascript.
[ Parent
| on HN ]
Re:Yes, I know how to write programs. How do I *run* them?
by ColinWright on Thursday June 30, 2011 @11:06AM
(#2714314)
Actually, I do know that JavaScript was originally meant to run in a browser. I also know it can be run "server side," or even just used as a general programming language. My mentioning of the web server was similar to my mentioning of Ubuntu, to try to ensure that the reader knows I'm not a complete computing dweeb.
I also know that one can just embed code between <script> tags, and I know that one can reference code in files elsewhere. But that's inefficient for actual learning. I was asking for a more effective setup without having to download, compile and install huge numbers of extras.
Re:Yes, I know how to write programs. How do I *run* them?
by J3L2404 on Thursday June 30, 2011 @12:15PM
(#2714604)
See my answer above.
Re:Yes, I know how to write programs. How do I *run* them?
by ColinWright on Thursday June 30, 2011 @12:38PM
(#2714714)
I've now installed rhino which gives me the js command. Now I'm running in a minimal setup, so I've started. Thx.