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");
Use JavaScript to create a function that will print words or sentences word by word. This is what I have so far: functio
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am