From f4a798e411134d98f5cdbc7d7e9d6193fb096fce Mon Sep 17 00:00:00 2001 From: Amritpal Singh Date: Sat, 29 Oct 2022 18:56:36 +0530 Subject: [PATCH] Update javascript.md Javascript: Add ; (semicolon) at the end of array declaration, and at the end of De-structuring objects. --- javascript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript.md b/javascript.md index 8dd45ad..ecc997d 100644 --- a/javascript.md +++ b/javascript.md @@ -84,7 +84,7 @@ console.log(squaresOfEvenNumbers); ### Arrays ```javascript -let [firstName, lastName] = ['Foo', 'Bar'] +let [firstName, lastName] = ['Foo', 'Bar']; ``` ### Objects ```javascript @@ -113,7 +113,7 @@ const post = { const users = [ ...adminUsers, ...normalUsers -] +]; ``` ## Functions ```javascript