Add default values to variables destructured from a JavaScript object

Share this video with your friends

Send Tweet

In this lesson we are going to learn how to set default values to variables destructured from a JavaScript object, which may come in handy if we'd like to avoid setting those variables to undefined because a certain field is not specified in the object we are destructuring from.