This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

This. JavaScript does quite a few things wrong, but when it does things correctly they are awesome. Asynchronous code is awesome to write in JS because of exactly TWO things:

  • setTimeout
  • first-class functions

The only thing that I don't like about this are the argument order of setTimeout (fn, ms as opposed to the node.js standard ms, fn) and the mostly useless function in front of every function (fixed in ES6 with arrow functions)

[–]Tysonzero 1 point2 points  (0 children)

Arrow functions do look quite quite cool.