Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log(activity) // it prints {name:'yoga',location:Object}
- console.log(activity.location) // it prints {name:'bogota',city:Object}
- console.log(activity.location.city) // it prints 1, not City Object.
- console.log(activity.location.city.name) // undefined, but City Object has name.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement