Valid code not working

Tell us what’s happening:
this is valid, but it isnt letting me pass.

  **Your code so far**
function trueOrFalse(wasThatTrue) {
// Only change code below this line
if (trueOrFalse) {
  return "Yes, that was true";
else {
  return "No, that was false";

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0

Challenge: Use Conditional Logic with If Statements

Link to the challenge:

It isn’t letting you pass because your code is wrong.

You are using the wrong condition in your if statement.

oh, used function name instead of parameter. the little things matter most.

1 Like

ok thx. works now, i passed.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.