Test case for 0 is failling, pl help me to debug

Tell us what’s happening:

Your code so far

function testLessThan(val) {
if (val) {  // Change this line
  return "Under 25";

if (val) {  // Change this line
  return "Under 55";

return "55 or Over";


Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0.

Challenge: Comparison with the Less Than Operator

Link to the challenge:

Only change the if statement they gave you. Don’t add another one.

1 Like