DEV Community

Discussion on: setTimeout() - any drawback?

Collapse
mxldevs profile image
MxL Devs

Interesting. I'm broadly aware of issues that can arise due to limitations of underlying data types (eg 32 bit ints or even 16 or 8 bit ints or less for those that really try to optimize space).

Interval sounds like it definitely would be more suitable if factors like "total time elapsed since the beginning" is not necessary.