Returning Boolean Values from Functions!

Please assist I am confused here as to what is wrong with this code ?

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);

Challenge: Returning Boolean Values from Functions

Link to the challenge:

Is this how you’re writing your code? If so, you’re defining the same function two times. You need to define function isLess {
} only once.


Your code is working fine.

1 Like

I just realized that it was already pre written with the function at the top. :woman_facepalming:t6: I think it’s enough coding for me tonight I should go to bed. Thank you!


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