Basic JavaScript - Use Conditional Logic with If Statements

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

Your code so far

function trueorfalse(wasThatTrue){
  if (wasThatTrue){
    return "yes, that was true";
  }
  return "No, that was false";

}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Challenge: Basic JavaScript - Use Conditional Logic with If Statements

Link to the challenge:

Check your return values (particularly the first one). The value you return must be exactly what the instructions are asking for, including case/capitalization.

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