Comparison with the Greater Than Operator

Comparison with the Greater Than Operator
0.0 0

#1

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);


#2

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.