0

Can somebody help me make a live sentence typer

Ull be helping me in a great way

19th Jul 2017, 12:21 PM
Ishaq Za'rour
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);
19th Jul 2017, 12:40 PM
The Coding Sloth
The Coding Sloth - avatar
19th Jul 2017, 1:54 PM
Calviղ
Calviղ - avatar