[Solved] Javascript reference [closed]
[ad_1] y = x; y = 6; Here, you’re assigning the value of x to y and then changing y. This doesn’t change x because x is never assigned a new value. var x = {}, y = {}; Here, you create two new objects and assign their addresses to x and y. The two … Read more