Question 59 of 10059%
59
What does this Proxy with a custom get trap log?
const target = { message: "hello" };
const handler = {
get(obj, prop) {
return prop in obj ? obj[prop] : `Property "${prop}" does not exist`;
},
};
const proxy = new Proxy(target, handler);
console.log(proxy.message);
console.log(proxy.missing);
59/100