Update reactive.md
This commit is contained in:
parent
cf654f1a2f
commit
2bad333df8
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user