Loop works fine without setTimeout but not with it. What caused it? Thanks you in advance
const sentence = "The quick brown fox jumps over the lazy dog.";
for (var i = 0; i < sentence.length; i++) {
    setTimeout(() => {
        console.log(
            `The character at index ${i} is ${sentence.charAt(i)}`
        );
    }, (i + 1) * 100);
} 
     
    