From f03a0edcb49c4260e7e05cdf28043684d19e7b73 Mon Sep 17 00:00:00 2001 From: Hari Shekhar Date: Tue, 28 Nov 2017 11:05:33 +0530 Subject: [PATCH] Modified just a small comment --- 1-js/05-data-types/09-destructuring-assignment/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: