let text = "Lorem ipsum dolor sit amet";
for(let i = 0; i < text.length; i++){
setTimeout(console.log(text.charAt(i)), 2000);
}
I need this text to be printed one character at once with 2 seconds delay but it is not stoping. why using setTimeout has no effect it just goes on without any delays.