Skip to content

Commit 5c61bed

Browse files
authored
Merge pull request #799 from CyberMew/patch-2
Update article.md
2 parents 05e1e26 + 7e71d1f commit 5c61bed

File tree

1 file changed

+1
-0
lines changed
  • 1-js/05-data-types/09-destructuring-assignment

1 file changed

+1
-0
lines changed

1-js/05-data-types/09-destructuring-assignment/article.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ let [firstName, surname] = [];
147147
*/!*
148148

149149
alert(firstName); // undefined
150+
alert(surname); // undefined
150151
```
151152

152153
If we want a "default" value to replace the missing one, we can provide it using `=`:

0 commit comments

Comments
 (0)