Quiz
- "If you want a more consistent speed for your animations, you can use timers like setTimeout instead of requestAnimationFrame." -- what does this mean specifically?
requestAnimationFrame runs as fast as the hardware and browser software allow, and that will differ from one machine to another: different graphics cards, different processors, different amounts of memory, more things running in background, etc.
setTimeout draws a frame every N milliseconds, so while it won't be as fast as possible, it'll be pretty much the same on different machines.