var texts = ["exist", "real", "hello", "nope", "yellow"];
var count = 0;
function changeText() {
$("t").text(texts[count]);
count < 4 ? count++ : count = 0;
}
setInterval(changeText, 100);
I have this line of code were the text changes every 100ms. How can I make the setInterval pause every x seconds for x seconds and then resume and do it all over again? Thanks