Link Search Menu Expand Document

Returning Boolean Values from Functions

Summary

  • It is better to return true or false directly from === than to use an if/else statement.

Final Code

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

isLess(10, 15);