Run Test Error in Use Destructuring Assignment section?

Tell us what’s happening:

I’ve looked at the hints, and for this one it gives you the answer, which is the same as mine - right?? Or what am I missing?

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36.

Link to the challenge:

Oops, nope - I figured it out! I’m not using the correct object (needed to use the one being passed in to the function - duhhhhhh!)

1 Like