Basic JavaScript - Returning Boolean Values from Functions

Tell us what’s happening:
Describe your issue in detail here.

cant understand whats wrong plz help

Your code so far

function isLess(a, b) {
  // Only change code below this line
return a === b;
  // Only change code above this line
}

isLess(10, 15);

Your browser information:

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

Challenge: Basic JavaScript - Returning Boolean Values from Functions

Link to the challenge:

Your logic is wrong. You need check if a is less than b. Here’s what the starter code looked like, by the way.

function isLess(a, b) {
  // Only change code below this line
  if (a < b) {
    return true;
  } else {
    return false;
  }
  // Only change code above this line
}

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