Workshop › Rhythm Lanes › Step 22 of 35
The counts of perfect, good and missed notes are the whole story of a performance. We keep them together in one
object, judged.
```js
let judged // counts: { perfect, good, miss }
judged = { perfect: 0, good: 0, miss: 0 }
if (off <= PERFECT) {
judged.perfect += 1
judge('Perfect', '#fde047')
} else {
judged.good += 1
judge('Good', '#86efac')
}
```judged holds three counts, all 0 after reset.judged.perfect += 1 adds one to the count inside the object.let feedback write let judged.reset, above feedback = null, write the judged = ... line.press, write judged.perfect += 1 and judged.good += 1 at the top of the two blocks.Skills: Game states
← Perfect or good Missed notes →