Tell us what’s happening:
The first part of the question is getting solved, but the second part I’m not able to get it.
It says “destructuring with reassignment was used” is not achieved.
Not able to solve so far.
Your code so far
const AVG_TEMPERATURES = {
today: 77.5,
tomorrow: 79
};
function getTempOfTmrw(avgTemperature) {
"use strict";
// change code below this line
const {tomorrow : tempOfTomorrow} = avgTemperature; // change this line
// 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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
.