Tell us what’s happening:
Describe your issue in detail here.
Your code so far
In the course I learnt that if code returns true the code is executed but if it returns false the code is not executed hence if the return of a strict equality is false wont the whole code not be executed hence how do we get the false value
function isLess(a, b) {
// Only change code below this line
if (a < b) {
return true;
} else {
return false;
}
// 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/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Challenge Information:
Basic JavaScript - Returning Boolean Values from Functions