const AVG_TEMPERATURES = {
today: 77.5,
tomorrow: 79
};
function getTempOfTmrw(avgTemperatures) {
"use strict";
// change code below this line
const { tomorrow: tempOfTomorrow } = AVG_TEMPERATURES; // change this line
// change code above this line
return tempOfTomorrow;
}
console.log(getTempOfTmrw(AVG_TEMPERATURES)); // should be 79
1 Like
I found the issue. Thank you.
2 Likes
Nicely done. Often, when things like this come up, the solution is here in the forums SOMEWHERE. It’s a handy thing to search the forums.
Best of luck!
The code works, so there was a problem with the test. What was the issue?
Not using the function parameters
1 Like