3 ms·
In JavaScript it's confusing that these are different: function(x) { return x; } function(x) { return x; }() To reduce confusion, JavaScript programmers f
by brlewis 10y ago
In JavaScript it's confusing that these are different:
function(x) { return x; }
function(x) { return x; }()
To reduce confusion, JavaScript programmers follow the Lisp convention and put parens around expressions like the latter. Once you take the 5 minutes needed to get used to the difference between x and (x) it's actually less confusing than popular alternatives.