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);

1 Answers1

0

To make sure undefined references undefined and nothing else.

pratyush
  • 480
  • 2
  • 10