Is there is a better way to iterate a function within an interval which consume least amnt of memory | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Is there is a better way to iterate a function within an interval which consume least amnt of memory

Because I listen about setInterval(...,...); that it consumes too much memory and dont found while loop soo productive to move a object or HTML element in my Webpage So can u suggest me a better way to do that??? šŸ™šŸ™šŸ™šŸ™

11th May 2020, 1:44 PM
Abhay
Abhay - avatar
1 Resposta
+ 1
setInterval would not consume too much of memory, unless you created consume memory triggered event function.
11th May 2020, 2:13 PM
CalviÕ²
CalviÕ² - avatar