Comment mettre à jour HTML avant alerte

function colorChange() {
  document.getElementById('word').style.color = "red";
  setTimeout(function() {
  	alert("color changed!");
  },10)
}
Determined Dog