Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function trueOrFalse(wasThatTrue) {
// Only change code below this line
if(wasThatTrue){
return "Yes,it's true";
}
return "No,it's false";
var wasThatTrue=true;
wasThatTure=true;
// Only change code above this line
}
many thanks any helper.
hwapipi
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.33
Challenge: Use Conditional Logic with If Statements
I type if(wasTahtTure) this statement,so when this statement is true the function trueOrFalse() will return “Yes, that was true” if the function is false it will return “No, that was false” so I type function () { if(){return “Yes, that was true”} return “No, that was false” }
2.Its not breaking your code, but what is this doing here?
var wasThatTrue=true;
wasThatTure=true;
above my type ,I only want to set a boolean to match the if condition statement.
3.how to sole this problem?