Use Destructuring Assignment to Assign Variables from Objects: need solution

can someone tell me what’s wrong with my solution? This section/challenge doesn’t make sense to me and the provided solution doesn’t really help (it’s not the same challenge)

  today: 77.5,
  tomorrow: 79

function getTempOfTmrw(avgTemperatures) {
  "use strict";
const {today, tomorrow: tempOfTomorrow} = AVG_TEMPERATURES;
  return tempOfTomorrow;

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36.

Link to the challenge:

You aren’t using the function parameter avgTemperatures anywhere in your code.

1 Like

doh! got it. thanks!

Glad to help. Happy coding!