5 ms·
> which IMO is one of the principal reasons for preferring it to original javascript. It's a nice feature, but saying it's one of the principle reasons to pref
by lowboy 14y ago
> which IMO is one of the principal reasons for preferring it to original javascript.
It's a nice feature, but saying it's one of the principle reasons to prefer CS over JS is a stretch. Wrapping your entire file in an IIFE is a one-time development cost and a simple pattern to remember. Compare that to the syntactic sugar, safeguards, and added functionality that one will leverage constantly during development.