-
Given a list of movie scores, I determined how many good, ok and bad movies there were.
-
Created a for loop to go through the
movieScore
list. -
Added scores over 7 to the
goodMovies
array. -
Added scores between 5 and 7 to the
okMovies
array. -
Added the rest of the scores to the the
badMovies
array. -
Calculated the average rating for all of the movies.
-
Printed out how many good, ok and bad movies there were and what the overall total score was to the console.
-
Clone repository to directory in computer
-
Open repository in source-code editor.
-
Navigate to index.html file
-
Right click in index.html file and click "open with live server"
-
Right click in browser web page and click "inspect"
-
Click on console
The number of good, bad, and ok movies along with the average movie score are printed to the console.