Tell us what’s happening:
Describe your issue in detail here.
It says the trueOrFalse function when false should return the string “No, that was false”
What am I doing wrong.
**Your code so far**
function trueOrFalse(wasThatTrue) {
// Only change code below this line
if (trueOrFalse){
return "Yes, that was true";
}
return "No, that was false";
}
trueOrFalse(true);
trueOrFalse(false);
// Only change code above this line
**Your browser information:**
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Use Conditional Logic with If Statements
You could do the debugging for him… Or you could tell him where to find the error message and how to interpret it so he can know how to fix similar problems in the future…