I'm not sure if "parent object" or even "property" are the correct terminology, so hopefully you will be able to understand.
var parentObj = {
  x: 1,
  childObj: {
    x: 2,
    childX: this.x, //2
    parentX: ?????? //1
  }
}
Is there any way to get the value of the parent's X value. I know that I could just use ParentObj.x, but is there a way to get the value regardless of what the parent's name is?
Thanks.
 
     
    