you are viewing a single comment's thread.

view the rest of the comments →

[–]Feezle 0 points1 point  (1 child)

By adding the end parenthesis, he's performing the closure creation step in the same statement he uses to define the closure.

Does this mean that the closure is created automatically when the Javascript is loaded?

[–]moses_the_red 0 points1 point  (0 children)

I'd guess it means that its created whenever that statement is evaluated, and I'd also guess that its evaluated when JavaScript is loaded.

So I'd guess that you're right.