0

While working with IIFE found that both of these expression works

Type:1

(function() {
    //Rest of code
})();

Type:2

(function() {
    //Rest of Code
}());

Is there any formal difference between two?

brk
  • 46,805
  • 5
  • 49
  • 71

0 Answers0