How to retrieve the repeated name value from each siblings or is it wrong?
<p>This is my object :</p>

<pre><code>var obj = {
a:{ x:1 y:function(){return this.x //works fine},
b:{x:2,y:function(){return this.x // instead of returning 2, it's not returning anything}
}
</code></pre>

<p>Is there any constrain to give the name like this? Because each one belongs it's own parent right? Still, why is it not working?</p>
