Javascript syntax with () - function scope
        Posted  
        
            by Fabien
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Fabien
        
        
        
        Published on 2010-06-09T16:45:02Z
        Indexed on 
            2010/06/09
            16:52 UTC
        
        
        Read the original article
        Hit count: 217
        
JavaScript
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.
© Stack Overflow or respective owner