What is closure thingy without the final parentheses?

(function(){})() will execute the function, try (function(){console.log(0)})()

and try (function(item){console.log(item)})(0)

y will be a function.

x = {"hello": ()=>{ return' world'}}

Leave a Comment