I read this once in a script, but I didn't understand its benefits.
(function () {}).call(this);
Also, I tried running it,
(function () { console.log('Hello World') }).call(this);
but it didn't print anything.
Even calling this (function () { console.log('Hello World') })()
didn't print anything either. Whats wrong?