So I was doing this exercise and I got a pass with the code below. but then I saw that a needed to also calculate some equations I did not include in my code.
so… why is it that I got a pass without including the equations to convert Fahrenheit into Celsius and vice versa?
function makeClass() {
"use strict";
/* Alter code below this line */
class Thermostat {
constructor(fahrneheit){
this.fahrneheit = fahrneheit;
}
get thermos(){
return this.thermos;
}
set thermos(t){
this.thermos = t;
}
}
/* Alter code above this line */
return Thermostat;
}
const Thermostat = makeClass();
const thermos = new Thermostat(76); // setting in Fahrenheit scale
let temp = thermos.temperature; // 24.44 in C
thermos.temperature = 26;
temp = thermos.temperature; // 26 in C