Using Conditional logic with if statements

Not sure why this is not passing is their a bug in this challenge?

I think my code is right can someone review it please?
this is very annoying that i can’t pass this challenge.

  **My  code so far**

function trueOrFalse(wasThatTrue) {
// Only change code below this line
return "Yes, that was true";

return "No, that was false"
}
 


Challenge: Use Conditional Logic with If Statements

Link to the challenge:

You don’t have a conditional statement. If you look at the example and the description, you’ve missed out the thing the lesson is talking about, the if statement

if (somethingIsTrue) {
  return something
}
1 Like

Thanks man I thought I had put the if statement the first time but I guess I missed it.
Thanks again.