Merge pull request #1152 from caproven/patch-1
Corrected no-declaration object destructuring
This commit is contained in:
commit
b63dda6472
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ To show JavaScript that it's not a code block, we can make it a part of an expre
|
||||||
let title, width, height;
|
let title, width, height;
|
||||||
|
|
||||||
// okay now
|
// okay now
|
||||||
*!*(*/!*{title, width, height}*!*)*/!* = {title: "Menu", width: 200, height: 100};
|
*!*(*/!*{title, width, height} = {title: "Menu", width: 200, height: 100}*!*)*/!*;
|
||||||
|
|
||||||
alert( title ); // Menu
|
alert( title ); // Menu
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue