In the following excercise there is an issue : https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/use-conditional-logic-with-if-statements
The following is my solution but not passing the test even though for a false parameter it is working perfectly…
function trueOrFalse(wasThatTrue) {
// Only change code below this line
if(wasThatTrue === true){
return "Yes, that was true";
} else {
return "It was false";
}
// Only change code above this line
}
console.log(trueOrFalse(false))
// running tests
trueOrFalse(false)
should return “No, that was false” // tests completed //
console output It was false