Tell us what’s happening:
trueOrFalse(true) should return the string Yes, that was true
Why am i not able to pass this test case??
Can someone tell What mistake did i do in this code??
Your code so far
function trueOrFalse(wasThatTrue) {
// Only change code below this line
if (wasThatTrue) {
return "Yes, That was true";
}
return "No, that was false";
// Only change code above this line
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Challenge Information:
Basic JavaScript - Use Conditional Logic with If Statements