Comparison with the Less Than Or Equal To Operator help

Comparison with the Less Than Or Equal To Operator help
0.0 0

#1

I have tried changing the numbers around and have tried changing the testLessOrEqual to all the different numbers I thought were possible. I am really struggling with this

Your code so far

function testLessOrEqual(val) {
  if (val <= 11) {  // Change this line
    return "Smaller Than or Equal to 12";
  }
  
  if (val <= 25) {  // Change this line
    return "Smaller Than or Equal to 24";
  }

  return "25 or More";
}

// Change this value to test
testLessOrEqual(55);


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:


#2

The number 12 is not less than or equal to 11, so it will not return “Smaller Than or Equal to 12”. It will return “Smaller Than or Equal to 24”.

The number 25 is less than or equal to 25 so it will return “Smaller Than or Equal to 24”.