Changing if...else to function

Tell us what’s happening:

My code has refused to pass even though it looks okay. What could be the problem?

  **Your code so far**
function isLess(a, b) {
// Only change code below this line

function isLess (a, b) {
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/ Safari/537.36

Challenge: Returning Boolean Values from Functions

Link to the challenge:

This can’t possibly be right - you have the function name twice

1 Like

Oh! Thanks a lot. I thought that the first function up did not have any effect on the code below the line. I deleted that and it worked. Thanks

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