const person = { name: 'John', details: function(age, place) { return `${this.name} ${age}, lives in ${place}` } } const details = person.details(25, 'London'); console.log(details); //John 25, lives in London