Review JavaScript Fundamentals by Building a Gradebook App - Step 2

Tell us what’s happening:

The “D” one is the problem it didn’t showing any output. Please help.

Your code so far

function getAverage(scores) {
  let sum = 0;

  for (const score of scores) {
    sum += score;
  }

  return sum / scores.length;

// User Editable Region

}
function getGrade(score) {
if(score===100){
  return "A++";
}
else if(score>=94){
  return  "A";
}
else if(score >= 80 && score <= 89){
return "B";
}
else if(score<=78){
return "C";
}
else if(score >= 60 && score <= 69){
return "D";
} 
else if(score<=57){
  return "F";
}
else if(score >= 0 && score <=59){
  return 
}
}
console.log(getGrade(96));
console.log(getGrade(82));
console.log(getGrade(56));
console.log(getGrade(68));
console.log(getGrade(50));
console.log(getGrade(58));

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

Review JavaScript Fundamentals by Building a Gradebook App - Step 2

what does this do? (try to read what you wrote)

hi there!

check the provided scores:

|Score Range|Grade|
|---|---|
|100|A++|
|90 - 99|A|
|80 - 89|B|
|70 - 79|C|
|60 - 69|D|
|0 - 59|F|