I just started learning JavaScript and finished the first pyramid generator project and in the 3rd step of the project where you build a Grade-book app its says,
A passing grade is anything that is not an "F"(which is below 60 btw).
Complete the function hasPassingGrade that takes a student score as a parameter. Your function should return true if the student has a passing grade and false if they do not.
And this is the code I wrote,
function hasPassingGrade(score) {
score = score > 60;
return score;
}
console.log(hasPassingGrade(100));
console.log(hasPassingGrade(53));
console.log(hasPassingGrade(87));
And it did print true, false, true
But when I check my code, why is still saying, " Your hasPassingGrade function should return true for all passing grades." ?
Is it because it can take more than 100 as value or some other reason? Again I’m a completely new to this