consttarget={}constproxy=newProxy(target,{get(target,propKey){console.log('GET',propKey)returntarget[propKey]},set(target,propKey,value){console.log('SET',propKey)target[propKey]=value}})proxy.foo//GET fooproxy.bar='abc'//SET barconsttarget={}constproxy=newProxy(target,{has(target,propKey){console.log('HAS',propKey)returnpropKeyintarget},deleteProperty(target,propKey){console.log('DELETE',propKey)deletetarget[propKey]}})'hello'inproxy//HAS hellodeleteproxy.bara//DELETE bar