Skip to content
Advertisement

How does one access properties within a nested array and object data structure?

How can I access properties within a nested array and object data structure.

I wish to access the data within the sub property of the object. However as you can see the sub property values do feature objects as well. So here is my code where I am using loop to access the property within this objects which would look something like this as shown below:

JavaScript

I am trying to access this late and other properties of the object here. Here I am showing you this example by using the following code.

JavaScript

However when I try to access its sub properties like late or state I am not getting them and I get a undefined in my console like this:

JavaScript
JavaScript

Now I am new at javascript and appscript and never dealt with such big data and objects. How can i access the data to this level.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement