Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var potatoReview =
- {
- "potatoes": 5,
- "reviewer": "armandofox",
- "movie": {
- "title": "Casablanca",
- "description": "Casablanca is a classic and iconic film starring ...",
- "rating": "PG",
- "release_date": "1942-11-26T07:00:00Z"
- }
- };
- potatoReview['potatoes'] // => 5
- potatoReview['movie'].title // => "Casablanca"
- potatoReview.movie.title // => "Casablanca"
- potatoReview['movie']['title'] // => "Casablanca"
- potatoReview['blah'] // => undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement