From 0c830c906e3585a065589917cc75e00d8e6fe360 Mon Sep 17 00:00:00 2001 From: Jaydon Date: Sun, 26 Jul 2026 17:38:44 +0800 Subject: [PATCH] docs(day11): fix typos in destructuring chapter - 'skip on of the values' -> 'skip one of the values' - add missing comma: 'When we destructure, the name of the variable...' - remove stray '//with destructuring' comment left in the without- destructuring example (the with-destructuring version has its own section below) --- .../11_day_destructuring_and_spreading.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/11_Day_Destructuring_and_spreading/11_day_destructuring_and_spreading.md b/11_Day_Destructuring_and_spreading/11_day_destructuring_and_spreading.md index d4ffc34..c538365 100644 --- a/11_Day_Destructuring_and_spreading/11_day_destructuring_and_spreading.md +++ b/11_Day_Destructuring_and_spreading/11_day_destructuring_and_spreading.md @@ -93,7 +93,7 @@ console.log(backEnd) ["Node", "Express", "MongoDB"] ``` -If we like to skip on of the values in the array we use additional comma. The comma helps to omit the value at that specific index +If we like to skip one of the values in the array we use additional comma. The comma helps to omit the value at that specific index ```js const numbers = [1, 2, 3] @@ -184,7 +184,7 @@ Node Express MongoDB ### Destructuring Object -When we destructure the name of the variable we use to destructure should be exactly the same as the key or property of the object. See the example below. +When we destructure, the name of the variable we use to destructure should be exactly the same as the key or property of the object. See the example below. ```js const rectangle = { @@ -258,7 +258,6 @@ const calculatePerimeter = rectangle => { } console.log(calculatePerimeter(rect)) // 60 -//with destructuring ``` ```js