Basic JavaScript - Use Conditional Logic with If Statements

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,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/107.0.0.0 Safari/537.36 Edg/107.0.1418.52

Challenge: Basic JavaScript - Use Conditional Logic with If Statements

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

1 Like

The only problem I see here is your capitalization of “True” and “False” in the return strings. It wants you to return literally “Yes, that was true” instead of “Yes, that was True” for instance.

A space after each comma will be needed, as well.

Yes sir I already solved