Skip to content

Commit 7cf0e03

Browse files
authored
Moved position of ')' in a code block to permit proper assignment statement
1 parent be342e5 commit 7cf0e03

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ To show JavaScript that it's not a code block, we can make it a part of an expre
349349
let title, width, height;
350350

351351
// okay now
352-
*!*(*/!*{title, width, height}*!*)*/!* = {title: "Menu", width: 200, height: 100};
352+
*!*(*/!*{title, width, height} = {title: "Menu", width: 200, height: 100}*!*)*/!*;
353353

354354
alert( title ); // Menu
355355
```

0 commit comments

Comments
 (0)