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 - avatar
1 Answer
+ 1
setInterval would not consume too much of memory, unless you created consume memory triggered event function.
11th May 2020, 2:13 PM
Calviղ - avatar