Comparison with the Greater Than Operator

Hi,

I am in this challenge: https://www.freecodecamp.com/challenges/comparison-with-the-greater-than-operator

I wonder what is wrong with my code.

function testGreaterThan(val) {
if (101 > 100) { // Change this line
return “Over 100”;
}

if (11 > 10) { // Change this line
return “Over 10”;
}

return “10 or Under”;
}

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

You should be making the comparison with “val” argument. Just replace 101 and 11 with “val”.
“val” can be any number you choose to put when calling the function.

1 Like