Javascript syntax with () - function scope
- by Fabien
I am not very familiar with the Javascript syntax bellow. Can anyone shade light about the sense of this block? For what purpose?
(function foo() {
alert('bar');
})();
Thanks in advance.