Files

7 lines
439 B
Markdown
Raw Permalink Normal View History

2023-01-02 04:47:46 +04:00
# setInterval
2026-06-12 11:06:50 +02:00
`setInterval()` repeatedly executes a function at a specified interval in milliseconds. It continues until `clearInterval()` is called with the returned ID. It is used for polling, animations, and periodic tasks, though `requestAnimationFrame` is preferred for visual updates.
2023-01-02 04:47:46 +04:00
Visit the following resources to learn more:
2026-06-12 11:06:50 +02:00
- [@article@Scheduling: setTimeout and setInterval](https://javascript.info/settimeout-setinterval)