Over here I set out the basic question:
http://news.ycombinator.com/item?id=2713391
It seems clear that I've asked the wrong question. Or at least, not asked the question I thought I asked. But certainly not asked the question I wanted to ask.
I know how to program. I have written JavaScript code by following the example syntax and adapting the given examples. Fine.
How do I run the bloody thing?
For Python, I do this:
* Open an editor.
* Write the code
* Save the code as code.py
* Exit the editor
* Type "Python code.py"
* Job done.
I can chmod +x the file and put it on my path and use it as an executable.
I'm looking for the equivalent(s) for JavaScript.
I think that's the question I intended to ask. This information seems sorely lacking in all the "tutorials" I've come across so far.