Workshop › Pool › Step 21 of 33
Next to the shots, show how many numbered balls are still on the table.
```js
ctx.fillText('Shots ' + shots + ' Left ' + (balls.filter((b) => !b.cue).length), LEFT, 22)
```balls.filter((b) => !b.cue) keeps the balls that are not the cue ball; .length counts them.In draw, extend the Shots text with ' Left ' + (...).
Skills: Arrays and objects