Update reactive.md

This commit is contained in:
Tom Ball 2018-11-14 08:54:00 -08:00 committed by GitHub
parent cf654f1a2f
commit 2bad333df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,10 +50,11 @@ The first job of the scheduler is to allow multiple *subprograms* to be queued u
```typescript
let count = 0
count = 0
input.onButtonPressed(Button.A, () => {
count++;
})
basic.forever(() => {
basic.showNumber(count)
})