Use Destructuring Assignment to Assign Variables from Objects Not passed

Tell us what’s happening:
I use the destructuring assignment but still give me error (destructuring with reassignment was used),
Any one give me help or solution, so, i can pass this challenge.

Ali Mosaad

Your code so far

  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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36.

Link to the challenge:

You need to spread avgTemperatures (the function parameter) not AVG_TEMPERATURES.

I actually made this exact mistake myself and couldn’t figure it out either. I made a post about it being unclear here

Maybe i’ll try and make a pull request if I can think of a way to make this mistake happen less.