Reflections on what I’ve learned in my coding adventure…

Destructuring Assignment
If we have this:
const myFavorites = {
     color: ‘blue’,
     car: ‘ferrari’,
     food: {
          breakfast: ‘eggs’,
          lunch: ‘sandwich’,
          dinner: ‘pizza’
     band: ‘pearl jam’

To pull information from food would look like this:
const breakfast =;
const lunch =;
const dinner =;

That took three lines of code. Destructuring simplifies those three lines of code:
const {breakfast, lunch, dinner} =


Close Menu