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(){}();
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(){}();