Skip to content

Commit d6922ee

Browse files
imazizbohraAziz
andauthored
contents: correct Proxy code typo (#16)
Co-authored-by: Aziz <[email protected]>
1 parent f540101 commit d6922ee

File tree

1 file changed

+2
-2
lines changed
  • questions/what-are-proxies-in-javascript-used-for

1 file changed

+2
-2
lines changed

questions/what-are-proxies-in-javascript-used-for/en-US.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const proxiedObject = new Proxy(myObject, handler);
2626
console.log(proxiedObject.name); // 'John'
2727
// Someone accessed property "name"
2828

29-
console.log(proxiedObject.value); // 42
30-
// Someone accessed property "value"
29+
console.log(proxiedObject.age); // 42
30+
// Someone accessed property "age"
3131
```
3232

3333
Use cases include:

0 commit comments

Comments
 (0)