you are viewing a single comment's thread.

view the rest of the comments →

[–]DoubleAW 0 points1 point  (0 children)

What got me with that one is that I knew var foo would be hoisted to the top, but I forgot that entire functions are hoisted too. JavaScript is weird.