I got stuck on JS if statement

I got stuck on JS if statement
0

#1

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.
if(true){
return “Yes, that was true”;
}
return “No, that was false”;

// Only change code above this line.

}

// Change this value to test
trueOrFalse(false);


#2
if(true) {
...
}

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

if(wasThatTrue) {
...
}

#3

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