Basic JavaScript - Use Conditional Logic with If Statements

Tell us what’s happening:
i don’t have any idea more.
please help me…
Your code so far
function trueOrFalse(wasThatTrue) {

// この行の下にあるコードのみを変更

if(true) {return “That was true”;}

if(false) {return “No, that was false”;}

// この行の上にあるコードのみを変更

}

function trueOrFalse(wasThatTrue) {
  // この行の下にあるコードのみを変更
if(true) {return "That was true";}
if(false) {return "No, that was false";}
  // この行の上にあるコードのみを変更
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.1 Safari/605.1.15

Challenge: Basic JavaScript - Use Conditional Logic with If Statements

Link to the challenge:

This condition will, literally, always be true. You don’t want to test if true is true. You want to test if wasThatTrue is true.

Also, its best to follow the example formatting given instead of inventing your own formatting.

1 Like

thank you very much!

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