Earlier quoted context omitted.
> I always find it odd that the same developers who deride PHP look at things like IIFE and think "wow, JS is a cool, modern language!" I don't deride PHP (I don't know it), but I see nothing wrong with IIFE. Yes, it could benefit from some syntactic sugar, but otherwise it is just using one of the best features of JavaScript, function support (first-class functions, anonymous functions, etc.). It makes perfect sense…
IIFEs are cumbersome and non-intuitive. Better languages have block scope or a "let" statement instead.
*depending on which version of ECMAscript is being used.