Find why the proxy cannot call reveal even though the target can.
JavaScript
class SecretBox {
#secret;
constructor(secret) {
this.#secret = secret;
}
reveal() {
return this.#secret;
}
}
const target = new SecretBox('ready');
const proxy = new Proxy(target, {});
console.log(proxy.reveal());