// Only change code below this line
// 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;
temp = thermos.temperature; // 26 in Celsius
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.5993.771 YaBrowser/23.11.2.771 Yowser/2.5 Safari/537.36
Challenge Information:
ES6 - Use getters and setters to Control Access to an Object
I can’t understand what’s going on here? Who knows what needs to be done here? Now the example itself is not clear, what is it?
to express this specifically, you need to understand at least something from your example, I personally did not understand anything from what you wrote there, what a getter and setter do, where to write temperature values, that is, there are very few examples there, and it is impossible to understand, how it works
It is quite clear that this is impossible to understand from your examples; such tasks must be broken down into hundreds of examples, otherwise there will only be negativity
Ok. If it’s impossible to understand this course, you should consider learning from different materials. It’s ok to find the best courses that meet your learning style. There are lots of courses designed around you repeating the examples other people created.