add a parenthesis for a typo in 01_javascript_refresher.md

I saw the typo 
console.log(index  //2
it should be => console.log(index) //2
pull/213/head
To Minh Tri 3 years ago committed by GitHub
parent d0c066fcb9
commit 483de6e53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3717,7 +3717,7 @@ Let us find the index of the first country in the array which has exactly six ch
```js
const countries = ['Finland', 'Estonia', 'Sweden', 'Norway', 'Iceland']
const index = countries.findIndex((country) => country.length === 6)
console.log(index //2
console.log(index) //2
```
Let us find the index of the first country in the array which has the letter 'o'.
@ -3725,7 +3725,7 @@ Let us find the index of the first country in the array which has the letter 'o'
```js
const countries = ['Finland', 'Estonia', 'Sweden', 'Norway', 'Iceland']
const index = countries.findIndex((country) => country.includes('o'))
console.log(index // 1
console.log(index) // 1
```
Let us move on to the next functional programming, some.

Loading…
Cancel
Save