Tell us what’s happening:
My code won’t pass the last task for some reason. ("trueOrFalse(false) should return “No, that was false” ) I have triple checked caps and spacing as well.
Your code so far
// Example
function ourTrueOrFalse(isItTrue) {
if (isItTrue) {
return "Yes, it's true";
}
return "No, it's false";
}
// Setup
function trueOrFalse(wasThatTrue) {
if (wasThatTrue); {
return "Yes, that was true";
}
return "No, that was false";
}
// Change this value to test
trueOrFalse(true);
trueOrFalse(false);
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
.
Link to the challenge: