myPlants is an array so you can say myPlants[1] to get the 2nd item in the array
But the second item in the array is an object
and that object does not have a property called 1
If you observe the data in myPlants you can see that it is
an array of two objects
each objects consists of keys: type and list
type is string and list is a array of items.
If you want to get second item in the array list whose type is ‘trees’ then
var tempObj = myPlant[1] will return a object which having type=“trees”
Now tempObj having keys: type and list. You should select list by using dot notation tempObj.list and second item using bracket notation tempObj.list[1].