Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Undeleted by Community Bot
added 271 characters in body
Source Link
Anonymous
  • 2k
  • 2
  • 19
  • 28

To access the id property of the nested myObj you can try this:

var myObj={Chatting : {a :{ 'id' : 'a'}}};
alert(myObj.Chatting.a.id)

TO create a nested Object:

var myObj={Chatting :Obj {a= :{ 'id'};
Obj["nestedObj"] := 'a'}}{};
alert(myObj.Chatting.aObj["nestedObj"]["nestedObj1"] = "value";
console.idlog(Obj);

To access the id property of the nested myObj you can try this:

var myObj={Chatting : {a :{ 'id' : 'a'}}};
alert(myObj.Chatting.a.id)

To access the id property of the nested myObj you can try this:

var myObj={Chatting : {a :{ 'id' : 'a'}}};
alert(myObj.Chatting.a.id)

TO create a nested Object:

var Obj = { };
Obj["nestedObj"] = {};
Obj["nestedObj"]["nestedObj1"] = "value";
console.log(Obj);

Post Deleted by Community Bot
Source Link
Anonymous
  • 2k
  • 2
  • 19
  • 28

To access the id property of the nested myObj you can try this:

var myObj={Chatting : {a :{ 'id' : 'a'}}};
alert(myObj.Chatting.a.id)

lang-js

AltStyle によって変換されたページ (->オリジナル) /