let person = { name: 'LLC' , gender: 'meal' } let proxy = new Proxy(person, { get() { console.log('get') return Reflect.get(...arguments) } , set() { console.log('set') return Reflect.set(...arguments) } }) console.log(proxy.name) //get //LLC proxy.name = 'LLX' //set