Workshop › Rhythm Lanes › Step 20 of 35
Each frame takes one off the message's time; when it reaches 0 the message is removed.
```js
lit = lit.map((n) => Math.max(0, n - 1))
if (feedback && --feedback.time === 0) feedback = null
frame += 1
```feedback && ...: if there is no message, the rest is not even looked at.--feedback.time takes one off first and then gives the new value; when that is 0 the message is removed.In update, under the lit = lit.map(...) line, write the new line.
Skills: Game states