Use JavaScript to create a function that will print words or sentences word by word. This is what I have so far: functio

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Use JavaScript to create a function that will print words or sentences word by word. This is what I have so far: functio

Post by answerhappygod »

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");
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply