Review JavaScript Fundamentals by Building a Gradebook App - Step 4

Hello everyone! I could really use some help with this. To be honest, I’m having trouble understanding this step. If anyone can assist me, I would greatly appreciate it. Thanks!

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";
  }
}

function hasPassingGrade(score) {
  return getGrade(score) !== "F";
}


// User Editable Region

function studentMsg(totalScores, studentScore) {

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

// User Editable Region


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Review JavaScript Fundamentals by Building a Gradebook App - Step 4

i suggest that you first click the reset button to erase any incorrect text added.

Then, re-read the instructions. Break them into small tasks. For example, the first task is: find out if the student passed the course
second task: if they passed, return the required string
third task: if they failed, return the required string

If you have a specific question about a specific step or something you read in the instructions, please tell us what your question is. The more information you give us, the more we can help.

@hbar1st , I’m really frustrated here. I already told you I don’t understand what this step wants me to do, and then you ask what my question is? Seriously? Can you please show me what the step is asking for? Did you even check step 4? Please provide something tangible, because so far, you’re not helping. Sorry to say this, but it’s the truth.

That is fine. I believe I have made several concrete suggestions. I hope you try them and if you don’t understand (something I have said before or something -specific- in the instructions given to you in the step) then please feel free to elaborate on whatever it is that you didn’t understand.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.