Both of these functions below are self-invoking functions. Can anyone explain to me what is difference between these two? I've looked around a lot of places. But I've not been able to find anything.
First Type
(function(){
console.log('Hello world');
}());
Second Type
(function(){
console.log('Hello world');
})();