Y
Y
Yaroslav Kornilov2017-04-08 23:55:33
JavaScript
Yaroslav Kornilov, 2017-04-08 23:55:33

How and why does such a function call work?

!function() {
console.log(42);
}()
I'm a bit confused) - exactly about the ! at the beginning, the function is actually called normally..

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question