Pattern name

Hi,
is there a pattern name for this ?


var HelloWorld = (function () {
    function HelloWorld(str) {
        alert(str);
    }
    return HelloWorld;
})();
HelloWorld('Hello there :)');

Thanks in advance.
Bye

may be module pattern ?

Yup, that’s correct.

This article by Brothercake goes into more depth.