Course · Section 14: Object-Oriented Programming (OOP) With JavaScript · Lecture 237: Chaining Methods
Using a `Calc` class whose `add` and `mul` methods return `this`, implement `calcChain(a, b)` that starts at 0, adds `a`, multiplies by `b`, and returns the result via chaining.
+ 1 hidden test run on Submit.
Each mutating method returns this, so calls can be chained fluently.
Run your code to see results.