     }     User.prototype.doConsole = function () {         console.log("Name: " + this.name);     };     return User; }()); var userObj = { name: 'jose' }; var user = new User(); Object.assign(user, userObj); 