Cosmos' coding practice . please, I have a challenge on building form elementt

Tell us what’s happening:
Describe your issue in detail here.
// I tried to run this code, it brought out syntax error and I don’t know what is wrong with the code. Please, I need help so that I can proceed to the next one.

  **Your code so far**

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

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 (Linux; Android 10; TECNO KB8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36

Challenge: Use Conditional Logic with If Statements

Link to the challenge:

for the syntax error you need to check the various } you have

after you fix that, confront carefully the required output with what you are returning

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