Use JavaScript to create a function that will print words or sentences word by word. This is what I have so far: functio
Posted: Sun Jul 03, 2022 9:59 am
Use JavaScript to create a function that will print words orsentences word by word.
This is what I have so far:
function typingEffect(textToType){ var j = 0; var speed = 50;
if (i < textToType.length) { document.getElementById('paragraph').innerHTML +=textToType.charAt(j); j++; setTimeout(typingEffect, speed); }}
typingEffect("Hello World");
This is what I have so far:
function typingEffect(textToType){ var j = 0; var speed = 50;
if (i < textToType.length) { document.getElementById('paragraph').innerHTML +=textToType.charAt(j); j++; setTimeout(typingEffect, speed); }}
typingEffect("Hello World");