Can't pass this one

Tell us what’s happening:
I’ve got stuck on this challenge, after a while I gave up and decided to look up the solution.
It was exactly the same code written there.
Does anyone might see something I am missing, would really appreciate :slight_smile:

Your code so far

function trueOrFalse(wasThatTrue) {
// Only change code below this line
if (trueOrFalse) {
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/80.0.3987.163 Safari/537.36 OPR/67.0.3575.137.

Challenge: Use Conditional Logic with If Statements

Link to the challenge:

It’s definitely not. Your if condition is based on a variable (trueOrFalse) that doesn’t exist anywhere in your code.

1 Like

my god, so obvious yet didn’t notice it. Thanks a lot


you can still run this just paste this below console.log(true); it would display your true statement