Tell us what’s happening:
When you use this structure tests are not passing.
Your code so far
const LOCAL_FORECAST = {
yesterday: { low: 61, high: 75 },
today: { low: 64, high: 77 },
tomorrow: { low: 68, high: 80 }
};
// Only change code below this line
let {
today: {
low: lowToday,
high: highToday
}
} = LOCAL_FORECAST;
// Only change code above this line
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0
.
Challenge: Use Destructuring Assignment to Assign Variables from Nested Objects
Link to the challenge: