This isn't an issue, but just as a heads up to others, I would strongly recommend using CoffeeScript over JavaScript. It pulls all of the best features from JavaScript and omits the nasty parts. function calls are much simpler, variables don't need a declaration, etc. Lots of good stuff. It's an easy transfer over since CoffeeScript, at its roots, still compiles down to Javascript. Here's a good place to read about getting started:
http://coffeescript.org/
And to make this clear to others since it took me a bit to figure out, once you install CoffeeScript, you can run it with the command coffee <file> rather than node <file>.
This isn't an issue, but just as a heads up to others, I would strongly recommend using CoffeeScript over JavaScript. It pulls all of the best features from JavaScript and omits the nasty parts. function calls are much simpler, variables don't need a declaration, etc. Lots of good stuff. It's an easy transfer over since CoffeeScript, at its roots, still compiles down to Javascript. Here's a good place to read about getting started: http://coffeescript.org/
And to make this clear to others since it took me a bit to figure out, once you install CoffeeScript, you can run it with the command
coffee <file>
rather thannode <file>
.