If I wasn’t going to get a certificate I would be using something else: Time an time again I get stuck on something that should work but does not. Here, in this question, i pulled out the varibale tomorrow and saved it into tempoftomorrow from AVG_TEMPERATURES. This works. However freeCodeCamp is telling me I did not use destructing. I clearly did and think your grading system is flawed to be too strict as JavaScript is fairly forgiving.
Your code so far
const AVG_TEMPERATURES = {
today: 77.5,
tomorrow: 79
};
function getTempOfTmrw(avgTemperatures) {
"use strict";
// change code below this line
const { tomorrow: tempOfTomorrow } = AVG_TEMPERATURES;
// change code above this line
return tempOfTomorrow;
}
console.log(getTempOfTmrw(AVG_TEMPERATURES)); // should be 79
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36.
Link to the challenge:
)