Merge pull request #799 from CyberMew/patch-2

Update article.md
This commit is contained in:
Ilya Kantor 2019-02-13 13:10:38 +03:00 committed by GitHub
commit 5c61bedbe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,6 +147,7 @@ let [firstName, surname] = [];
*/!*
alert(firstName); // undefined
alert(surname); // undefined
```
If we want a "default" value to replace the missing one, we can provide it using `=`: