MathsGee is free of annoying ads. We want to keep it like this. You can help with your DONATION

0 like 0 dislike
37 views

What is the value of foo.x?

var foo = {n: 1};
var bar = foo;
foo.x = foo = {n: 2};
| 37 views