Workshop › Typing Rain › Step 17 of 33
The lives are shown as hearts at the top right: '♥'.repeat(lives) makes a text of that many hearts.
```js
ctx.fillStyle = 'white'
ctx.font = 'bold 16px sans-serif'
ctx.textAlign = 'right'
ctx.fillText('♥'.repeat(lives), canvas.width - 10, 22)
```'♥'.repeat(3) is '♥♥♥'.textAlign = 'right' puts the text's right end at x, 10 pixels from the right edge, so it never runs off.In draw, after the words loop, leave an empty line and write the four lines.
Skills: Drawing on a canvas