Review JavaScript Fundamentals by Building a Gradebook App - Step 3

Tell us what’s happening:

Stuck on Review Javascriot fundamentals Step 3
Not moving forward

Your code so far

function getAverage(scores) {
  let sum = 0;

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

  return sum / scores.length;
}

function getGrade(score) {
  if (score === 100) {
    return "A++";
  } else if (score >= 90) {
    return "A";
  } else if (score >= 80) {
    return "B";
  } else if (score >= 70) {
    return "C";
  } else if (score >= 60) {
    return "D";
  } else {
    return "F";
  }
}


// User Editable Region

function hasPassingGrade(score) {
  if (getGrade = "F"){
    return False;
  }; else if {
    return True;
  };
};


console.log(hasPassingGrade(100));
console.log(hasPassingGrade(53));
console.log(hasPassingGrade(87));

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36

Challenge Information:

Review JavaScript Fundamentals by Building a Gradebook App - Step 3

Please talk to us about how you find the instructions or error message confusing.

Hi there.
This is not how you call the getGrade function. You must pass the getGrade function the required parameter.

also do not return False or True with capital letters. They should be lowercase only.
Also, do not put a semicolon here:

or here:

or here:

also don’t use = which is an assignment operator to compare things.
The operator you should use is the stricly equal operator ===

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.