I have seen both of these syntaxes (the second one a lot more though)
Is there a difference? Are they both behaving the same way?
(function() {
// code
}())
(function() {
// code
})()
I have seen both of these syntaxes (the second one a lot more though)
Is there a difference? Are they both behaving the same way?
(function() {
// code
}())
(function() {
// code
})()