commit
5c61bedbe9
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ let [firstName, surname] = [];
|
||||||
*/!*
|
*/!*
|
||||||
|
|
||||||
alert(firstName); // undefined
|
alert(firstName); // undefined
|
||||||
|
alert(surname); // undefined
|
||||||
```
|
```
|
||||||
|
|
||||||
If we want a "default" value to replace the missing one, we can provide it using `=`:
|
If we want a "default" value to replace the missing one, we can provide it using `=`:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue