0
Can somebody help me make a live sentence typer
Ull be helping me in a great way
2 Réponses
+ 2
var timing = 250;
var str = "text";
var n = 0;
str.split("");
var interval = setInterval(function() {
if(n > str.length - 1) {
clearInterval(interval);
return;
}
document.body.innerHTML += str[n];
n++;
}, timing);
+ 1
Typing its own code here..
https://code.sololearn.com/WXZ48Q08LsuL/?ref=app