const person = { fname:" John", lname:" Doe", age: 25, city:"", get fullName(){ return this.fname+ "" + this.lname }, set address(town){ this.city = town } }; person.address = "new york" console.log(person.fullName,person.city)