Error? Use Destructuring Assignment to Assign Variables from Nested Objects

Tell us what’s happening:

I’m fairly certain that I’ve completed this as required, but it gives the error that I’m not actually using nested destructuring. Am I wrong or is this a system error?

Your code so far

  today: { min: 72, max: 83 },
  tomorrow: { min: 73.3, max: 84.6 }

function getMaxOfTmrw(forecast) {
  "use strict";
  // change code below this line
  const { tomorrow : { max : maxOfTomorrow }} = LOCAL_FORECAST; // change this line
  // change code above this line
  return maxOfTomorrow;

console.log(getMaxOfTmrw(LOCAL_FORECAST)); // should be 84.6

Your browser information:

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

Link to the challenge:

check out the argument for getMaxOfTmrw(forecast)

youre trying to get data directly from LOCAL_FORECAST but you gotta use the forecast argument instead.

try changing local_forecast to forecast in your function

Right :wink:
Thanks, yeah that was kind of a silly thing to overlook.