I need to pull the value out of an object and am not sure how to get to it.
Here's a slimmed down version of my code. Can someone tell me how to get the color?
var object = {
'fruit' :开发者_如何学Go {
apple: {
goldenDelicious: [
{ color: 'green' }
]
}
}
}
object.fruit.apple.goldenDelicious[0].color
精彩评论