diff --git a/1-js/05-data-types/09-destructuring-assignment/article.md b/1-js/05-data-types/09-destructuring-assignment/article.md index a1fb7d54..085d2b8c 100644 --- a/1-js/05-data-types/09-destructuring-assignment/article.md +++ b/1-js/05-data-types/09-destructuring-assignment/article.md @@ -478,8 +478,8 @@ Please note that such destructuring assumes that `showMenu()` does have an argum ```js showMenu({}); -// that would give an error -showMenu(); + +showMenu(); // this would give an error ``` We can fix this by making `{}` the default value for the whole destructuring thing: