Returning Boolean Values from Functions please help

Tell us what’s happening:

Your code so far

function isLess(a, b) {
  // Fix this code
    return a===b;

// Change these values to test
isLess(10, 15);

Your browser information:

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

Link to the challenge:

You have the basic idea, but the logic is wrong.

return a===b;

You’re supposed to check if a is less than b, not equal.

1 Like