Hi,
is there a pattern name for this ?
PHP Code:
var HelloWorld = (function () {
    function 
HelloWorld(str) {
        
alert(str);
    }
    return 
HelloWorld;
})();
HelloWorld('Hello there :)'); 
Thanks in advance.
Bye