hey, i already passed the test. but i couldn’t figure out the logic behind it. because there should be extra codes. am i wrong ? cause other wise where is the part of code that triggers function with True or False data ?
**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
}
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Challenge: Use Conditional Logic with If Statements
As stated, the tests are run behind the scenes. The test imports that function and runs the tests there. You can of course test it yourself. You can put this at the bottom of the code pane:
console.log(trueOrFalse(false));
and see the output below. This will have no affect on the tests.