How to understand the comparison excercises. Greater than or equal to

How to understand the comparison excercises. Greater than or equal to
0.0 0

#1

Tell us what’s happening:
Okay, i don’t understand how to pass this test. The hint page isn’t working and by using the hint page, I was able to do the last test. I just don’t understand what is expected of me to do because it seems like there is no answer. I don’t understand how to make it so that the return statements make sense. Every time I fix one issue, a new one shows up.

Your code so far

function testGreaterOrEqual(val) {
  if (val>=10) {  // Change this line
    return "20 or Over";
  }
  
  if (val>=9) {  // Change this line
    return "10 or Over";
  }

  return "9 or Under";
}

// Change this value to test
testGreaterOrEqual(10);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0.

Link to the challenge:


#2

If you want to return “20 or Over”, then your if statement should be checking if val is greater or equal to 20 (not greater or equal to 10).

If you want to return “10 or Over”, then your if statement should be checking if val is greater or equal to 10 (not greater or equal to 9).