Workshop › Asteroids › Step 28 of 41
The lives go at the top right, one ▲ for each.
```js
ctx.textAlign = 'right'
ctx.fillText('▲'.repeat(Math.max(0, lives)), canvas.width - 12, 26)
```'▲'.repeat(3) is '▲▲▲'. Math.max(0, lives) never lets it go below 0.In draw, under the score line, write the two lives lines.
Skills: Drawing on a canvas
← A rock hits the ship What time is it? →