I’m pretty lost with this lesson because I feel pretty certain that I did what it asks.
-
getTempOfTmrw(AVG_TEMPERATURES)
should be79
-
destructuring with reassignment was used
The code they give:
const AVG_TEMPERATURES = {
today: 77.5,
tomorrow: 79
};
function getTempOfTmrw(avgTemperatures) {
"use strict";
// change code below this line
const tempOfTomorrow = undefined; // change this line
// change code above this line
return tempOfTomorrow;
}
I change the one line to:
const { tomorrow: tempOfTomorrow } = AVG_TEMPERATURES;
However it still says that I have not done
destructuring with reassignment was used
Is there a special way I was supposed to format it or anything?