ES6 - Use Destructuring Assignment to Extract Values from Objects

**Tell us what’s happening:**this is not anything, not a new constant yet. I made it a new constant and it was in fact still the whole original when enquired into. I got the object entries out and they were yesterday as well as the destructured today and tomorrow.
for instance

const HIGH_TEMPERATURES = {
  yesterday: 75,
  today: 77,
  tomorrow: 80
};



let shortForcast= {today ,tomorrow} = HIGH_TEMPERATURES;

let show=Object.entries(shortForcast);
console.log(show);

okay tbh I have guessed the console reply but saw it return the whole original.
Describe your issue in detail here.

Your code so far

const HIGH_TEMPERATURES = {
  yesterday: 75,
  today: 77,
  tomorrow: 80
};

// Only change code below this line

const {today ,tomorrow} = HIGH_TEMPERATURES;

// 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/111.0.0.0 Safari/537.36 OPR/97.0.0.0

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

Link to the challenge:

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