-
-
Save McLarenCollege/5d46ee37e3cbf47b8b492dd1cf9f26a0 to your computer and use it in GitHub Desktop.
Exercise : Movies Object Diagram
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let bollyWoodMovies = ['Kai Po Che', 'Dangal', '3 Idiots', ['Ashoka', 'Swades']]; | |
let hollywood = 'bollywood'; | |
let movies = { | |
'hollywood': ['Interstellar', 'Black Panther', { | |
comedy: { | |
'action': ['Night at the Museum', 'Meet the parents', 'Tropic Thunder'], | |
'romantic': ['The Fault in Our Stars', 'UP', 'Titanic'] | |
}, | |
rating: [7.2, 9, 8.3, 5, 7] | |
}, 'Avengers', 'Zero Dark Thirty', 'top'], | |
'bollywood': [ | |
{ | |
top10: [bollyWoodMovies[0], bollyWoodMovies[3], 'Gully Boy'] | |
} | |
], | |
others: ['Bahubali', 'Robot'], | |
} | |
//Draw the object diagram for the above variables. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment