Course · Section 14: Object-Oriented Programming (OOP) With JavaScript · Lecture 226: ES6 Classes
Define a `Counter` class with an `inc()` method, and implement `counterAfter(n)` returning the count after calling `inc()` `n` times.
+ 1 hidden test run on Submit.
Each Counter instance holds its own count, incremented by inc().
Run your code to see results.