I need help it is not working es6!

Tell us what’s happening:
IT IS NOT WORKING I EVEN TRIED THE HINT
AND THERE IS NO VID

Your code so far


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

// change code below this line

const { today, tomorrow } = HIGH_TEMPERATURES;

// change code above this line

console.log(yesterday) // should be not defined
console.log(today); // should be 77
console.log(tomorrow); // should be 80

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:77.0) Gecko/20100101 Firefox/77.0.

Challenge: Use Destructuring Assignment to Extract Values from Objects

Link to the challenge:

Hi @zakplayer23,
Welcome to the freeCodeCamp forum!

Just tried your code and it worked …

you may be getting an error becouse yesterday is (correctly) not defined, try to remove this line and see if it works.
If you scroll down in the console you will see ReferenceError: yesterday is not defined


yes, you will have to do without from now on

1 Like