Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Something {
- constructor() => this.calls = 0;
- totalCalls() => ++this.calls;
- }
- let something = new Something();
- something.totalCalls(); // 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement