Answer the question
In order to leave comments, you need to log in
What does the unary plus do here?
Two essentially identical codes:
+function() {
alert('Вызов на месте');
}();
(function() {
alert('Вызов на месте');
}());
Answer the question
In order to leave comments, you need to log in
Plus indicates that this is a Function Expression and not a Function Declaration. Parentheses do the same.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question