Moved position of ')' in a code block to permit proper assignment statement
This commit is contained in:
parent
be342e50e3
commit
7cf0e03213
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;
|
||||
|
||||
// okay now
|
||||
*!*(*/!*{title, width, height}*!*)*/!* = {title: "Menu", width: 200, height: 100};
|
||||
*!*(*/!*{title, width, height} = {title: "Menu", width: 200, height: 100}*!*)*/!*;
|
||||
|
||||
alert( title ); // Menu
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue