Hi i am newb to javascript when i was trying write a code i encounter this problem
var k = {
sam: {
b: k.bar.x,
},
bar: {
x: "Hi",
},
};
I dono how to access that bar.x property. I tried using getter and setters.
I know it can be accessed if i use b:this.k.bar.x . But this bad way to access it.
Please clarify my doubt. Is my understanding is wrong or my code is wrong. Thank you