function choiceResult(correctOrWrong) {
  var result = document.querySelector("#choice-result");
  result.classList.remove("d-none");
  // Display message
  document.getElementById("correctness").textContent = correctOrWrong;

  var time = 2;
  var correctnessInterval = setInterval(function () {
    if (time > 0) {
      time--;
    } else {
      clearInterval(correctnessInterval);
      result.classList.add("d-none");
    }
  }, 500);
}
// Displays if answer was correct/wrong for a short period
Displays if answer was correct/wrong for a short period
Displays if answer was correct / wrong for a short period
function choiceResult(correctOrWrong) {
  var result = document.querySelector("#choice-result");
  result.classList.remove("d-none");
  document.getElementById("correctness").textContent = correctOrWrong;
  var time = 2;
  var correctnessInterval = setInterval(function () {
    if (time > 0) {
      time--;
    } else {
      clearInterval(correctnessInterval);
      result.classList.add("d-none");
    }
  }, 500);
}
function choiceResult ( correctOrWrong ) { var result = document . querySelector ( "#choice-result" ) ; result . classList . remove ( "d-none" ) ; document . getElementById ( "correctness" ) . textContent = correctOrWrong ; var time = 2 ; var correctnessInterval = setInterval ( function ( ) { if ( time > 0 ) { time -- ; } else { clearInterval ( correctnessInterval ) ; result . classList . add ( "d-none" ) ; } } , 500 ) ; }
Displays if answer was correct/wrong for a short period
Displays if answer was correct / wrong for a short period
// Display message