Use Destructuring Assignment to Assign Variables from Objects.hmm

Tell us what’s happening:
i dont know what im missing

Your code so far


const AVG_TEMPERATURES = {
  today: 77.5,
  tomorrow: 79
};

function getTempOfTmrw(avgTemperatures) {
  "use strict";
  // change code below this line
  const {tomorrow} = 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/72.0.3626.109 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-assign-variables-from-objects

you are returning the above variable from your function, do you know what value it holds now ?

const {tomorrow} = AVG_TEMPERATURES;

should be

const {tomorrow} = avgTemperatures;

And yes, the confounding wording of the challenge says AVG_TEMPERATURES. It’s a bug in the challenge text.