Destructuring Assignment ES6

Hi, keep telling me that I should use the restructuring with reallocation but I am already using it.

  today: 77.5,
  tomorrow: 79

function getTempOfTmrw(avgTemperatures) {
  "use strict";
  // change code below this line
  const { today: tempOfToday, tomorrow: tempOfTomorrow } = avgTemperatures; // change this line

  // change code above this line
  return tempOfTomorrow;

console.log(getTempOfTmrw(AVG_TEMPERATURES)); // should be 79

I think it is just the way the test run for the challenge, if you get rid of the today: tempOfToday it should pass.

Thanks, I wasn’t understanding what I had to do

I had the same issue when I did this challenge. The code is correct just not what the test are looking for.

thanks a lot your solution is very helpful