Review JavaScript Fundamentals by Building a Gradebook App - Step 4

im very stuck here my code runs but its wont get accepted

function studentMsg(totalScores, studentScore) {
  if(getGrade(studentScore) == 'F'){
    return "Class average:" + " " + getAverage(totalScores) + "." + " Class grade:"+ " " + getGrade(studentScore) + "." + " " + "You failed the course.";
  } else {
    return "Class average:" + " " + getAverage(totalScores) + "." + " Class grade:"+ " " + getGrade(studentScore) + "." + " " + "You passed the course.";
  }

}
console.log(studentMsg([92, 88, 12, 77, 57, 100, 67, 38, 97, 89], 37));

hello, share this step / exercise url too, happy coding :slight_smile:

What is the problem you are trying to solve?
What do the failing tests and/or error messages say?
What else have you tried?

Hi @berndtdenniscanaya

Your output below:
Class average: 71.7. Class grade: F. You failed the course.
Class average: 71.7. Your grade: F. You failed the course.
The expected output above.

Happy coding