I got stuck on JS if statement

I got stuck on JS if statement


I have no idea where I got wrong…
Did I do something wrong with the last instruction? (trueOrFalse(false) should return “No, that was false”

// Setup
function trueOrFalse(wasThatTrue) {

// Only change code below this line.
return “Yes, that was true”;
return “No, that was false”;

// Only change code above this line.


// Change this value to test

if(true) {

is always true no matter the value of the wasThatTrue argument. Try:

if(wasThatTrue) {


Thank you! I just realize that I got the if statement idea wrong. ~
Now I can move on. Many thanks.