+ 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
1 Answer
+ 3
window.onload = function() {
var emote = document.querySelector('#e');
var emoji = emote.textContent;
setInterval(function() {
emote.textContent += emoji;
}, 2000);
};