Skip to content

Commit 7e71d1f

Browse files
authored
Update article.md
1 parent 09bc924 commit 7e71d1f

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
@@ -146,6 +146,7 @@ let [firstName, surname] = [];
146146
*/!*
147147

148148
alert(firstName); // undefined
149+
alert(surname); // undefined
149150
```
150151

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

0 commit comments

Comments
 (0)