News for hackers. Stuff that matters.
Re:RE:DOM – Tiny DOM library by wingless on Monday August 29, 2016 @06:43AM (#12381069)
It's a way of hiding local variables. Old "var" variables are function scoped, so you can't even hide them in if-blocks or for-blocks, which makes scope leakage even worse.

If you're a JS programmer you should definitely read Crockford's famous JS book, it explains a lot of JS patterns and the rationale behind them.

There are no comments on this comment yet.