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?
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?