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
  • 48,835
  • 10
  • 56
  • 78

0 Answers0