let text = « Arrivée de la flamme en l’église de Marloie »;
let word = « flamme »;
let index = text.indexOf(word);
let blink = setInterval(function() {
if (text.charAt(index) === » « ) {
text = text.substr(0, index) + word + text.substr(index + word.length);
} else {
text = text.substr(0, index) + » » + text.substr(index + word.length);
}
console.log(text);
}, 500);