diff --git a/01_Day_JavaScript_Refresher/01_javascript_refresher.md b/01_Day_JavaScript_Refresher/01_javascript_refresher.md index 7d03fb4..45d48a3 100644 --- a/01_Day_JavaScript_Refresher/01_javascript_refresher.md +++ b/01_Day_JavaScript_Refresher/01_javascript_refresher.md @@ -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.