DEV Community

Fatima Alam
Fatima Alam

Posted on

JS - Data Structures

Destructuring Arrays

To skip a particular element in between

Destructuring Objects

If you want the variables to be called by restaurantName, hours, tags, etc...

Applying default values in case it is not present (in this case menu is not present)

Top comments (0)