Trivia

Step 10: When the submit button is clicked, check the question number to determine the answer to check for.
Hint: Your submit function should have something like:
if (questionNumber == 1) {
  if (answer.value == `some answer 1`) {
    // show correct message
  }
  else {
    // show incorrect message
  }
}
else if (questionNumber == 2) {
  if (answer.value == `some answer 2`) {
    // show correct message
  }
  else {
    // show incorrect message
  }
}
Last step Next step