For this exercise, we will use a JSON file called "hp-movies.json". that has been uploaded to the Internet. The JSON file contains information about Harry Potter movies.
Write JavaScript code to answer the questions below. Log each of the answers to the console.
Write JavaScript code to answer the questions below. Display the answers on the page in the designated areas.
select element).
Loop through the movies and dynamically create a new option element for each movie.
Use the movie's identifier as the option value, and the movie's title as the option text.
updateMovieInfo.
It should identify what movie is currently selected from the dropdown menu,
then lookup the corresponding movie information using a find operation,
and finally display information about that movie in the designated areas below.
Specifically it should display the movie title, year, rating, and an image of the movie poster.
updateMovieInfo function.
As a result, you should be able to select different movies from the dropdown to see the corresponding info on the page.
Title: TODO
Year: TODO
Rating: X / 10
Thumbnail Image: