What's am I doing wrong?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

function trueOrFalse(wasThatTrue) {
// Only change code below this line

function trueOrFalse(wasThatTrue) {
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; rv:89.0) Gecko/20100101 Firefox/89.0

Challenge: Use Conditional Logic with If Statements

Link to the challenge:

You are defining function trueOrFalse(wasThatTrue) { twice. When I remove the inner one of those, and the closing curly brace associated with it, your code passes for me.

1 Like

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