Next, we’ll make this code repeat itself over and over again – about 60 times per second! To do this, we’ll use the tick function.

- Highlight the line of code you wrote in the start function.
- Press Ctrl+X or Command+X (on a Mac) to cut it.
- Press enter between the
{ }
of thetick
function to create a new line. - Press Ctrl+V or Command+V (on a Mac) to move the line from the start function to the tick function.