Merge pull request #1152 from caproven/patch-1

Corrected no-declaration object destructuring
This commit is contained in:
Ilya Kantor 2019-07-16 08:37:21 +03:00 committed by GitHub
commit b63dda6472
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
``` ```