So after looking at this longer, it makes a lot more sense. Basically, things are evaluated left to right. The first (function(){}) evaluates the function(){} and returns the function. Then the function is called with the second (1), and passing that in as a param.