← Code LabTypeScript0/50 solved · 0%
Types · hard

49. Polymorphic this types

Referencing the current class type fluently.

Write a fluent class `Calc` where methods return `this`.
Required in your answer: add(n: number): thisreturn this