Use Destructuring Assignment to Assign Variables from Nested Objects

Tell us what’s happening:
Please why do i keep getting stuck here, it looks like i have done all that’s required of me…please help!!!

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 code above this line
  return maxOfTomorrow;

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0.

Link to the challenge:

Your function getMaxOfTmrw takes an argument, but you do not use that variable in the function. You are accessing a global variable inside your function.

omg! i see the issue. thanks a bunch…i might have another issue too…coming right up :slight_smile:

you know what, it was the same issue you just explained…thanks again