I have a small issue in JS, I have two nested objects, and I would like to access a variable from the parent, like so:
var parent = { a : 5, child:
I think it doesn't really make sence to do it like that since you can access child object only through its parent. so why add a mthod displayB to the child while you can add it to the parent which has access to all child properties.