You will make a JS console application in this assessment that queries an array of movie objects
Question:
You will make a JS console application in this assessment that queries an array of movie objects
The starting folder has a module file of movie data. It is imported by app.js. The global variable, movies, in app.js is your starting point. in the console You will see that it is an array of movie data.
All work will be coded in the app.js file.
Code an function that determines the average star rating of movies by genre. a. Expected input: genre b. Expected output: average star rating, formatted to 2 decimal places.
make a function that outputs the following movie stats for a given movie: title, number of actors, years passed since its release. a. Expected input: imdb_id b. Expected output: a JS Object with 3 key/value pairs - one per stat
Show your 2 functions working with the following test cases:
? Challenge 1: use the Adventure genre
? Challenge 2. use imdb_id = tt0120737
Introduction to Corporate Finance What Companies Do
ISBN: 978-1111222284
3rd edition
Authors: John Graham, Scott Smart