my question is when i console.log(trueOrFalse(true)) does that mean i am making wasThatTrue = to true there for it returns the first statement? Also if that is the case when you console.log(trueOrFalse(false)) making wasThatTrue = to false is that like saying wasThatTrue is no longer wasThatTrue therefore the if statement sees if(wasThatTrue) as saying no it is not the same therefore you receive the second return statement?
i hope this makes sense i just want to understand a little better any answers are much appreciated thank you.
**Your code so far**
function trueOrFalse(wasThatTrue) {
// Only change code below this line
if(wasThatTrue) {
return 'Yes, that was true';
}
return 'No, that was false';
}
// Only change code above this line
console.log(trueOrFalse(false))
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:95.0) Gecko/20100101 Firefox/95.0
Challenge: Use Conditional Logic with If Statements
Link to the challenge: