function User(name) {
// this = {}; (implicitly)
this.name = name;
this.sayHi = function() {
alert( "My name is: " + this.name );
};
// return this; (implicitly)
}
let john = new User("John");
john.sayHi(); // My name is: John
✔️ return with an object returns that object, in all other cases this is returned.