What is the difference between these two types of running a JavaScript function?
(function() {
//Code #1
})();
and
(function() {
//Code #2
}());
I've seen both of these and i tend to use the #1.
What is the difference between these two types of running a JavaScript function?
(function() {
//Code #1
})();
and
(function() {
//Code #2
}());
I've seen both of these and i tend to use the #1.