0

what is the difference between these 2

1) var func = (function(){}());

2) var func = (function(){})();

and also what is the purpose of surrounding with parentheses if next line works also

var func = function(){}();
Sebastian Simon
  • 18,263
  • 7
  • 55
  • 75
A.Dias
  • 3
  • 4

0 Answers0