Parens and functions
- View SourceWhen immediately invoking a function literal, parens must wrap the
expression when it is used in the statement position because of an
ambiguity in the grammar with function statements. However, those
parens are not required, and are best avoided, in all other positions.
JSLint now warns when parens are used unnecessarily.