I've been searching a way to get the Parent object property in a nested Object but had no luck.
Here is the nested object I am using:
var obj = {
name: 'My Name',
obj1: {
age: 18,
name: this.name
}
};
But it gives and undefined error.
Is there any way in JavaScript or jQuery to achieve it?