Conditional Logic Lesson Broken

Working on the lesson Use Conditional Logic with If Statements

Here is what I have:

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

  // Only change code above this line


To me this seems to be exactly what they’re looking for. I’m getting errors about missing semi-colons, but the example does not have them.

I’m now stuck and can’t move forward.

Did I just waste two hours of my time??

remember that JavaScript is case sensitive

1 Like

Ok. That did it. Thank You!

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