Skip to content

Commit c3bfac5

Browse files
authored
Merge pull request #2 from ubongndoh/ubongndoh-patch-2
Update 11_day_destructuring_and_spreading.md file
2 parents 3996791 + 01eb332 commit c3bfac5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

11_Day_Destructuring_and_spreading/11_day_destructuring_and_spreading.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Destructuring is a way to unpack arrays, and objects and assigning to a distinct
5757

5858
```js
5959
const names = ['Asabeneh', 'Brook', 'David', 'John']
60-
let [firstPerson, secondPerson, ThirdPerson, fourth Person] = names
60+
let [firstPerson, secondPerson, thirdPerson, fourthPerson] = names
6161

6262
console.log(firstName, secondPerson,thirdPerson, fourthPerson)
6363
```
@@ -108,7 +108,7 @@ If we like to skip on of the values in the array we use additional comma. The co
108108

109109
```js
110110
const names = ['Asabeneh', 'Brook', 'David', 'John']
111-
let [, secondPerson, , fourth Person] = name // first and third person is omitted
111+
let [, secondPerson, , fourthPerson] = name // first and third person is omitted
112112

113113
console.log(secondPerson, fourthPerson)
114114
```
@@ -695,4 +695,4 @@ const users = [
695695
```
696696
🎉 CONGRATULATIONS ! 🎉
697697

698-
[<< Day 10](../10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md) | [Day 12>>](../12_Day_Regular_expressions/12_day_regular_expressions.md)
698+
[<< Day 10](../10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md) | [Day 12>>](../12_Day_Regular_expressions/12_day_regular_expressions.md)

0 commit comments

Comments
 (0)