Pls I need help

Pls what is wrong with my code

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

}

Challenge:
trueOrFalse(false) should return the string No, that was false

HI @ahmads14nabil !

I have edited your post to include the challenge link.

When posting to the forum, please always include the link to the challenge you are working on :+1:

Sorry my mistake, I understand it now.

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