Hello,
I have passed this challenge by just writing a class. I don’t seem to get it why just writing a class passes this challenge.
Thanks!
"use strict";
/* Alter code below this line */
class Thermostat {
constructor(fTemperature) {
this.fTemperature = fTemperature;
}
}
/* 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