syndicate-2017/_includes/frontpage_javascript_exampl...

10 lines
150 B
Markdown
Raw Normal View History

```javascript
2017-02-20 22:19:56 +00:00
spawn {
2016-08-25 12:15:06 +00:00
field this.balance = 0;
assert account(this.balance);
on message deposit($amount) {
this.balance += amount;
}
}
```