Workshop › Hangman › Step 16 of 36
The player should see how many misses are left: Misses 2 / 6 on the right.
```js
function draw() {
ctx.fillStyle = '#fefce8'
ctx.fillRect(0, 0, canvas.width, canvas.height)
ctx.fillStyle = '#1f2937'
ctx.font = 'bold 16px sans-serif'
ctx.textAlign = 'left'
ctx.fillText('Misses ' + wrong + ' / ' + MAX_WRONG, 260, 100)
```'bold 16px sans-serif', and left alignment: the text starts at x = 260.'Misses ' + wrong + ' / ' + MAX_WRONG joins text and numbers into 'Misses 2 / 6'.In draw, under the fillRect line, leave an empty line and write the four lines (above ctx.textAlign = 'center').
Press Run, click the game and try some wrong letters.
Skills: Drawing on a canvas
← Six misses at most List the wrong letters →