Basic JavaScript - Use Conditional Logic with If Statements

Tell us what’s happening:

Dear Friends ;
Hope you all doing great -
I looked through the previous solutions and I feel like I’m doing right but should be missing something that I can’t see … I stucked in here
Thank You Very Much

Your code so far

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

function trueOrFalse(wasThatTrue) {
  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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Use Conditional Logic with If Statements

You have written the trueOrFalse function again, you don’t have to write the function again. You just have to write your if condition inside the already given function in the challenge.

Hope this helps!

3 Likes

You wrote the function trueOrFalse twice. Function is already written you only need to write the if condition inside the function

1 Like

Thank You Very Much :slight_smile: Solved

3 Likes

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