Why is this wrong? Use Destructuring Assignment to Assign Variables from Objects

Tell us what’s happening:
I am not sure what I am doing wrong. The issue is that I’m apparently not using destructuring with reassignment, but I’m pretty sure that I am from the description. It’s not passing.

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 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36.

Link to the challenge:

You’re not using a provided function argument but global variable AVG_TEMPERATURES instead.

You’re using the object used to test the function inside the function. The function takes an argument (avgTemperatures) , and you can test it using the provided object AVG_TEMPERATURES

const {tomorrow: tempOfTomorrow} = avgTemperatures;

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.