Update article.md

This commit is contained in:
CyberMew 2019-02-13 10:18:36 +08:00 committed by GitHub
parent 09bc924b68
commit 7e71d1fcda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,6 +146,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 `=`: