11.
What is the primary purpose of using setInterval for animations?
12.
Which method allows for more control over animation intervals?
13.
What can be a downside of using requestAnimationFrame for animations?
14.
How does setInterval impact CPU usage during animations?
15.
Which method provides smoother animations on devices with varying screen refresh rates?
16.
What happens if setInterval is used with a very short interval for animations?
17.
How does requestAnimationFrame contribute to reducing screen tearing in animations?
18.
Which method is more suitable for implementing game loop animations?
19.
What can be a drawback of using setInterval for long-running animations?
20.
How does requestAnimationFrame contribute to battery life during animations?