syndicate-2017/_includes/frontpage_javascript_exampl...

12 lines
174 B
Markdown
Raw Normal View History

```javascript
actor {
2016-05-10 22:53:47 +00:00
react {
2016-08-07 20:54:09 +00:00
field this.balance = 0;
assert account(this.balance);
on message deposit($amount) {
this.balance += amount;
}
}
}
```