e.cssText = "color: red;";
    nextDivElement.innerHTML = '';
  }
}

function changeQuestion() {
  countries.splice(randomNumber, 1);
  capitals.splice(randomNumber, 1);
  randomNumber = Math.floor(Math.random() * countries.length);
  questionElement.innerHTML = countries[randomNumber] ? 'What is the capital of ' + countries[randomNumber] + ' ?' : 'You won !';
  nextDivElement.innerHTML = '';
  editorElement.editor.clear();
}

window.addEventListener('resize', function () {
  editorElement.editor.resize();
