class User {
state = "happy";
firstName;
lastName;
constructor(fName, lName) {
this.firstName = fName;
this.lastName = lName;
}
fullName = function () {
return this.firstName + " " + this.lastName;
};
}
let user1 = new User('Renay', 'Earnshaw')
let user2 = new User('Philip', 'Earnshaw')