Third attempt.
I want a set of sentences to appear, one after the other and separated by 2 seconds. Then the process to begin again with a new set of sentences, until a set outcome is reached.
The code I posted previously was way too lengthy, and the nearest I can come to my desired outcome, which mimics my faulty code, is this:
var counter;
var postHere;
var interval1;
var timeout1;
var timeout2;
var timeout3;
counter = 128;
postHere = document.getElementById("comment");
interval1 = setInterval(function() {
timeout1 = setTimeout(function() {postHere.innerHTML = "<p>First sentence = " + counter + "</p>";
timeout2 = setTimeout(function() {postHere.innerHTML = postHere.innerHTML + "<p>Second sentence = " + counter + "</p>";
timeout3 = setTimeout(function() {postHere.innerHTML = postHere.innerHTML + "<p>Third sentence = " + counter + "</p>";}, 2000);
}, 2000);
}, 2000);
counter = counter / 2;
if (counter < 1) {clearInterval(interval1);}
}, 2000);
<div id="comment"></div>
The linked duplicate is where I have derived the clears from, but this is an extension to that question.