/Grades

Student grades

Primary LanguageJavaScript

Grades

Requirements

Loop over an array of student grades (values from 50-100) and output how many of each grades there are.

A score of 50-60 is an F
A score of 61-70 is a D
A score of 71-80 is a C
A score of 81-90 is a B
A score of 91-100 is an A

Start with array of random scores in your JavaScript

var scores = [82, 71, 95, 55, 98, 69, 72, 78, 84, 64, 58, 87];

Use console.log() to output the following criteria:

How many of each grade?
What is the lowest grade?
What is the highest grade?