Workshop › Asteroids › Step 29 of 41
requestAnimationFrame passes loop the time since the page opened, in milliseconds. We keep it in now; the next
steps use it for a moment of safety.
```js
let now = 0
function loop(time) {
now = time
```loop(time) receives the time; now = time keeps it where every function can read it.let lives write let now = 0.loop the parameter time, and write now = time as its first line.Skills: The game loop
← Show the lives A moment of safety →