Is there anything functionally different about this prototypical design pattern:var Greeter = function(message) {    this.greeting = message;    return this;}Greeter.prototype.greet = function () {    return Hellos,  + this.greeting;}As opposed to:var Greeter = (function () {    function Greeter(message) {        this.greeting = message;    }    Greeter.prototype.greet = function () {        return Hellos,  + this.greeting;    };    return Greeter;}());The bottom approach seems to be cleaner and so I opt into using that more often, but I have seen many people use the top approach.
Prototypical Javascript design approach
javascript;object oriented