Course · Section 14: Object-Oriented Programming (OOP) With JavaScript · Lecture 226: ES6 Classes
Define a `MathUtils` class with a static `sumTo(n)` method, and implement `rangeSum(n)` returning `1 + 2 + ... + n` by calling it.
+ 1 hidden test run on Submit.
Static methods are utilities on the class itself, invoked without an instance.
Run your code to see results.