// running tests Thermostat should be able to be instantiated

// Only change code below this line

class Thermostat {
  constructor(Fahrenheit){
    this.Fahrenheit = Fahrenheit;
  }

  get temperature(){
    return (5/9)*(this.Fahrenheit);
  }

  set temperature(Celcius){
    this.Fahrenheit = (Celcius * (9/5) +32);
  }
}

// Only change code above this line

const thermos = new Thermostat(76); // Setting in Fahrenheit scale

let temp = thermos.temperature; // 24.44 in Celsius

thermos.temperature = 26;

thermos.temperature = 98.4;

temp = thermos.temperature; // 26 in Celsius

const therm = new Thermostat(tem); // Setting in Fahrenheit scale

let tem = 70;

console.log();

getting following error:
/ running tests

Thermostat

should be able to be instantiated. // tests completed // console output

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.

Please 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.

markdown_Forums

If anyone else stumbles upon this, that error message also appears when the getter returns an incorrect value. @mkparmar the problem with your code is that your formula to calculate the temperature in Celsius within the getter is not correct. It should be something like:

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

(you just left out the “minus 32” part)