Utiliza getters (accesores) y setters (mutadores) para controlar el acceso a un objeto

Cuéntanos qué está pasando:

Despues de ejecutar las pruebas sale este error.

// ejecutando pruebas
Llamar al setter con un valor Celsius debe establecer temperature.
// pruebas completadas

  **Tu código hasta el momento**
// Cambia solo el código debajo de esta línea
class Thermostat {
  constructor(fahrenheit) {
    this._fahrenheit = fahrenheit;
  }
  // getter
  get temperature() {
    return (5/9) * (this._fahrenheit - 32);
  }
  // setter
  set temperature(celsius)  {
    this.fahrenheit = (celsius * 9.0) / 5 + 32;
  }
}
// Cambia solo el código encima de esta línea

// Cambia solo el código debajo de esta línea
class Thermostat {
constructor(fahrenheit) {
  this._fahrenheit = fahrenheit;
}

// getter

get temperature() {
  return (5/9) * (this._fahrenheit - 32);
}

// setter

set temperature(celsius)  {
  this.fahrenheit = (celsius * 9.0) / 5 + 32;
}
}
// Cambia solo el código encima de esta línea

const thermos = new Thermostat(76); // Ajuste en escala Farenheit
let temp = thermos.temperature; // 24.44 en Celsius
thermos.temperature = 26;
temp = thermos.temperature; // 26 en Celsius
  **Información de tu navegador:**

El agente de usuario es: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36

Desafío: Utiliza getters (accesores) y setters (mutadores) para controlar el acceso a un objeto

Enlaza al desafío:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

vs

You have a small typo here.

ok.  thank you
okay. Thank you very much, that was it, I don't understand what happened to me that I hadn't noticed.

no entendí mucho el ejercicio, puesto que lo hice de otra forma y paso las pruebas, podrian decirme que hice mal?, anexo el codigo gracias!

class Thermostat {
  constructor (temp) {
    this.temp=(5/9 * (temp - 32))
  }
  get temperature(){
    return this.temp
  }
  set temperature(temp){
    this.temp=temp
  }
}

If you have a question about a specific challenge as it relates to your written code for that challenge, and you’ve tried to solve it at least 3 times so far and still need some help, just click the Ask for Help button located on the challenge (it looks like a question mark).
This button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.