Stuck on step 4 of gradebook app

function studentMsg(totalScores, studentScore) {
    if (hasPassingGrade(studentScore)) {
      return "Class average: " + getAverage(totalScores) + "." + " Your grade: " + getGrade(studentScore) + "." + " You passed the course.";
  } else {
      return "Class average: " + getAverage(totalScores) + "." + " Your grade: " + getGrade(studentScore) + "." + " You failed the course.";
  }
}
console.log(studentMsg([92, 88, 12, 77, 57, 100, 67, 38, 97, 89], 37));

Please, I don’t know why this is not passing. Kindly help. Thank you.

Welcome back to the FCC forum. Create your own topic to the challenge step.
@Blessope

1 Like

I went ahead and created a new topic for you.

But in the future, please make sure to use the ask for help button which will create a topic for you :+1:

1 Like

As to your question, I am able to pass with your code on my end.
Try resetting the lesson and trying again
or try another browser

1 Like