Merge pull request #2 from ubongndoh/ubongndoh-patch-2

Update 11_day_destructuring_and_spreading.md file
pull/96/head
Ubong Ndoh 5 years ago committed by GitHub
commit c3bfac5b90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,7 +57,7 @@ Destructuring is a way to unpack arrays, and objects and assigning to a distinct
```js ```js
const names = ['Asabeneh', 'Brook', 'David', 'John'] const names = ['Asabeneh', 'Brook', 'David', 'John']
let [firstPerson, secondPerson, ThirdPerson, fourth Person] = names let [firstPerson, secondPerson, thirdPerson, fourthPerson] = names
console.log(firstName, secondPerson,thirdPerson, fourthPerson) console.log(firstName, secondPerson,thirdPerson, fourthPerson)
``` ```

Loading…
Cancel
Save