Fixed type errors in Day 9 and Day 11 md files

pull/104/head
DensonAbraham 5 years ago
parent ff64df9419
commit d540e06cd5

@ -196,7 +196,7 @@ arr.forEach((element, index, arr) => console.log(index, element, arr))
```js
let sum = 0;
const numbers = [1,2,3,4,5];
numbers.forEach(num => console.log(num)))
numbers.forEach(num => console.log(num))
console.log(sum)
```
@ -212,7 +212,7 @@ console.log(sum)
```js
let sum = 0;
const numbers = [1,2,3,4,5];
numbers.forEach(num => sum += num))
numbers.forEach(num => sum += num)
console.log(sum)
```
@ -391,7 +391,7 @@ _every_: Check if all the elements are similar in one aspect. It returns boolean
```js
const names = ['Asabeneh', 'Mathias', 'Elias', 'Brook']
const areAllStr = names.every((name) => typeof name === 'string')
const arrAllStr = names.every((name) => typeof name === 'string')
console.log(arrAllStr)
```

@ -57,7 +57,7 @@ Destructuring is a way to unpack arrays, and objects and assigning to a distinct
```js
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)
```

Loading…
Cancel
Save