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
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
You should dynamically generate the following output for each test case: Test Case 1 [Running] no mjs" 3.21 Test Case 2 { } title: 'The Lord of the Rings: The Fellowship of the Ring', numActors: 5, yrsSince Release: 21
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started