here is my code:
function trueOrFalse(wasThatTrue) {
if(wasThatTrue)
{
return "Yes,that was True";
}
return "No,that was false";
}
console.log(trueOrFalse(true));
The errors are:
trueOrFalse(true)
should return the string
Yes, that was true`
trueOrFalse(false)
should return the string
No, that was false
// tests completed // console output Yes,that was True Yes,that was True