Skip to content

Commit db1a7dc

Browse files
Merge pull request learning-zone#5 from talentedandrew/patch-1
Proxy example console.log statement fix
2 parents 840a25d + 7a61799 commit db1a7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3252,7 +3252,7 @@ var p = new Proxy({}, handler);
32523252
p.a = 10;
32533253
p.b = null;
32543254

3255-
console.log(p.a, p.b); // 1, null
3255+
console.log(p.a, p.b); // 10, null
32563256
console.log('c' in p, p.c); // false, 100
32573257
```
32583258
In the above code, it uses `get` handler which define the behavior of the proxy when an operation is performed on it

0 commit comments

Comments
 (0)