Course · Section 14: Object-Oriented Programming (OOP) With JavaScript · Lecture 226: ES6 Classes
Define a `Temperature` class storing Celsius with a `toF()` method, and implement `toFahrenheit(c)` returning the Fahrenheit value.
+ 1 hidden test run on Submit.
The class wraps a Celsius value and converts to Fahrenheit with the standard formula.
Run your code to see results.