let passFail
if (hasPassingGrade(studentScore)) {
passFail = "You passed the course."
} else {
passFail = "You failed the course."
}
return "class average: " + getAverage(totalScores) + ". Your grade: " + getGrade (studentScore) + "." + passFail;
}
console.log(studentMsg([92, 88, 12, 77, 57, 100, 67, 38, 97, 89], 100));
hello and welcome to fcc forum
there is not enough context!! considier sharing url link for this problem/task and your entire code for this problem
happy coding
That’s not exactly what you were asked to return.
Please Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!