0

why would one have to pass undefined as an argument in the below referenced function

 var x = (function (window, undefined){
      function x(){
        this. result = 0;
      }
  })(window);
user3873833
  • 45
  • 1
  • 4

1 Answers1

0

To make sure undefined references undefined and nothing else.

pratyush
  • 704
  • 5
  • 11