freeCodeCamp Challenge Guide: Use Destructuring Assignment to Extract Values from Objects

Use Destructuring Assignment to Extract Values from Objects


Solutions

Solution 1 (Click to Show/Hide)
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
19 Likes