Workshop › Rhythm Lanes › Step 25 of 35
Rhythm games reward streaks. The combo counts hits in a row and goes back to zero on a miss.
```js
let combo
combo = 0
closest.hit = true
combo += 1
judged.miss += 1
combo = 0
```combo starts at 0, grows by one with every hit and goes back to 0 on a miss.let score write let combo; in reset, under score = 0, write combo = 0.press, under closest.hit = true, write combo += 1.update, in the miss loop, under judged.miss += 1, write combo = 0.Skills: Game states