Basic JavaScript - Comparison with the Less Than Or Equal To Operator

Tell us what’s happening:
Could you see my mistake in here

Your code so far

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

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

  return "More Than 24";
}

testLessOrEqual(10);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Edg/106.0.1370.42

Challenge: Basic JavaScript - Comparison with the Less Than Or Equal To Operator

Link to the challenge:

The code you added should be inside the brackets.

1 Like

Thanks sir, im get it rn

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.