Sorry for the horrible title, once people give me some direction I can edit it better for the future.
I'm mainly curious as to what the difference between
(function() {
return false; // logs false
}());
and
(function() {
return false; // Also returns false
})();
is, they both seem to give me the same result in the console but I'm sure there must be a difference, could somebody tell me the difference and why you would use one over the other?