I see a piece of JavaScript code in my Node.js application.
( function() { console.log("gg") } )(this)
I would like to know why use => ( function(){} )(this) this type of structure, and how does this compile.
I am understanding why we have this two brackets ()(), and why this code would work.