Updated #### 1. forEach

while reading, realized that "index" is spelled as "i" in console.log

```js
const countries = ['Finland', 'Estonia', 'Sweden', 'Norway']
countries.forEach(function (country, index, arr) {
  console.log(i, country.toUpperCase())
})
```
to....

```js
...
countries.forEach(function (country, index, arr) {
  console.log(index, country.toUpperCase())
})
```
pull/219/head
Eron 3 years ago committed by GitHub
parent d0c066fcb9
commit 609dc079ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3409,7 +3409,7 @@ Let see different examples
```js
const countries = ['Finland', 'Estonia', 'Sweden', 'Norway']
countries.forEach(function (country, index, arr) {
console.log(i, country.toUpperCase())
console.log(index, country.toUpperCase())
})
```

Loading…
Cancel
Save