+ 6

How to clone using JavaScript ?

I want to clone anything using JavaScript such as text, image, circle, emoji etc. I want the emoji to be cloned every 2 seconds. https://code.sololearn.com/W7bdl9J1Cl63/?ref=app

13th Jan 2019, 12:34 PM
Bono
Bono - avatar
1 Answer
+ 3
window.onload = function() { var emote = document.querySelector('#e'); var emoji = emote.textContent; setInterval(function() { emote.textContent += emoji; }, 2000); };
13th Jan 2019, 2:12 PM
Vaas
Vaas - avatar