1. Create and array of objects named movies. Each of the objects in the array will...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Create and array of objects named movies. Each of the objects in the array will represent a movie. Each object should have properties for: movie title (string) release year (number) rating (your rating, a number 1-10) genres (an array of strings. eg ["Drama", "Mystery", "Sci-Fi", "Western"]) The array should contain at least 5 movies you have seen (choose your own movies) You can use IMDB if you need help finding the info for your movie 2. Now that digital format has taken over, we would like to add a property to each object for the format ("film" or "digital"). The property will be called "format". Assuming that all movies in our data set where shot on film, use .forEach() to add the property and set the "format" property to a value of "film" for each movie. 3. Use the .sort() method to sort the array of movies by rating, best to worst. Make sure that at least one of your movies has a rating of 10. 4. Use the .map() method to create an array of movie titles from our initial data set named movieTitles. 5. Use the .reduce() method to find the highest and lowest rated movies in the data set. Store these objects in variables named highestRated and lowestRated. 6. Use the filter() method to create an array of movies that have a rating of 7 or higher. Store this array in a variable named highlyRated. 7. Display the following in the console with text to describe each value: The title of each movie (hint: jain() to make it look nicer) The highest rated movie title and rating The lowest rated movie title and rating The titles of movies that have a rating of 7 or more 1. Create and array of objects named movies. Each of the objects in the array will represent a movie. Each object should have properties for: movie title (string) release year (number) rating (your rating, a number 1-10) genres (an array of strings. eg ["Drama", "Mystery", "Sci-Fi", "Western"]) The array should contain at least 5 movies you have seen (choose your own movies) You can use IMDB if you need help finding the info for your movie 2. Now that digital format has taken over, we would like to add a property to each object for the format ("film" or "digital"). The property will be called "format". Assuming that all movies in our data set where shot on film, use .forEach() to add the property and set the "format" property to a value of "film" for each movie. 3. Use the .sort() method to sort the array of movies by rating, best to worst. Make sure that at least one of your movies has a rating of 10. 4. Use the .map() method to create an array of movie titles from our initial data set named movieTitles. 5. Use the .reduce() method to find the highest and lowest rated movies in the data set. Store these objects in variables named highestRated and lowestRated. 6. Use the filter() method to create an array of movies that have a rating of 7 or higher. Store this array in a variable named highlyRated. 7. Display the following in the console with text to describe each value: The title of each movie (hint: jain() to make it look nicer) The highest rated movie title and rating The lowest rated movie title and rating The titles of movies that have a rating of 7 or more
Expert Answer:
Related Book For
Quantitative Methods for Business
ISBN: 978-0324651751
11th Edition
Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey cam
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Three resistors are connected in series across a battery. The value of each resistance and its maximum power rating are as follows: 2.0 and 4.0 W, 12.0 and 10.0 W, and 3.0 and 5.0 W. (a) What is...
-
Determine the equilibrium constant (K) for the reaction CH4 + 2O2 CO2 + 2H2O at25oC.
-
A flow of propane is compressed adiabatically from 100 kPa and 15C to 1.0 MPa. If the heats of mass are constant, what is the lowest temperature the propane can theoretically reach at the compressor...
-
A researcher hypothesizes that drivers who use cellular phones will get into a greater number of traffic accidents than drivers who do not use these phones. For this example, a. What are the...
-
The standard cost of Product B manufactured by TLC Company includes three units of direct materials at $5.00 per unit. During June, 28,000 units of direct materials are purchased at a cost of $4.70...
-
Antec Corporation had a balance of $2,600 in Prepaid Supplies at the beginning of the year. The company purchased $1,050 of supplies during the year. At year end, Prepaid Supplies had a balance of...
-
Alex of Barstow, California, recently took a new job as a manufacturers representative for an aluminum castings company. While looking over his employee benefits materials, he discovered that his...
-
1) How serious was this email security breach? Why did the Kaiser Permanente leadership react so quickly to mitigate the possible damage done by the breach? 2) Assume that you were appointed as the...
-
A soil sample is identified by the following sieve data: Sieve #10 #40 #200 LL PI Passing 100% 80% 37% 42 20 What is the AASHTO classification of this sample? Explain what type of subgrade material...
-
Create a concept map that depicts your assumptions and findings of the theory-practice gap. You are a staff nurse working in an intensive care unit and assigned to care for a 75-year-old African...
-
Imagine you are the HR Director for an organization that is planning to do business in one of the countries listed below United States Germany Japan France Netherlands Hong Kong Indonesia West Africa...
-
What recruiter characteristics matter to you when you are applying for a job? Why? Which do not matter much or at all? Why not?
-
The manager of a University campus bookshop conducts a survey to investigate whether there are any differences between females and males with respect to their consideration of the purchase of...
-
a. Why does the Wi-Fi Alliance release compatibility testing profiles in waves instead of combining the entire standards features initially? 27a1.) An 802.11ac Wi-Fi compatibility testing profile...
-
Which mechanism of bacterial genetic transfer does not require recombination with the bacterial chromosome?
-
Explain why small deletions and duplications are less likely than large ones to have a detrimental effect on an individuals phenotype. If a small deletion within a single chromosome happens to have a...
-
Explain how polytene chromosomes of Drosophila are produced, and describe the six-armed structure they form.
Study smarter with the SolutionInn App