Below you will find pages that utilize the taxonomy term “Javascript”
Post
Elegantly Simple
JavaScript catches a lot of flack for it’s “ugliness,” but I’m rather fond of the language. It’s first-class functions make up for any quirks you have to deal with in the language. Consider this test case:
{% gist 1308316 output.js %}
It generates this output when run with --spec:
{% gist 1308316 output.txt %}
I’m using test cases like this throughout my upcoming Programming Node.js book to test output of some of the simple scripts.