Use getters and setters to Control Access to an Object Lesson not Acting as Intended

I don’t believe this lesson functions as intended.

You can pass the test with just this:

class Thermostat {
  constructor(fahrenheit) {
    this._fahrenheit = fahrenheit;
  }

It does not seem to check for the “getters” or “setters” at all even though that is the point of the lesson.

Looks like that’s a bug.

You can file an issue at https://github.com/freeCodeCamp/freeCodeCamp/issues and help out the community :slight_smile: