Conditional Logic quiz

It asks me to make my function to print yes that was true if true and that was false if false,u get it. However,when i test it,it works but i don’t get the screen to go to the next challenge
// Example

function ourTrueOrFalse(isItTrue) {
  if (isItTrue) { 
    return "Yes, it's true";
  }
  return "No, it's false";
}

// Setup
function trueOrFalse(wasThatTrue) {

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

}

// Change this value to test
trueOrFalse(true);

Check your strings. Make sure they match the strings in the tests.

I’ve also edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

markdown_Forums

1 Like