ES6 - Use Destructuring Assignment to Extract Values from Objects

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

const {today, tomorrow} = HIGH_TEMPERATURES;

This was the code shown on the solutions tab however it wont run and provide the progress tab and to go on to the next lesson



// Only change code below this line
const {today, tomorrow} = HIGH_TEMPERATURES;
HIGH_TEMPERATURES.today = 77
HIGH_TEMPERATURES.tomorrow = 80

// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.35

Challenge: ES6 - Use Destructuring Assignment to Extract Values from Objects

Link to the challenge:

The first sentence of the instructions say:

“Replace the two assignments with an equivalent destructuring assignment.”

Replace usually means to get rid of something and put something else in its place. You added something new but you didn’t get rid of anything.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.