From 483de6e53a168647ee9ec1ab008548ed23e3e8ef Mon Sep 17 00:00:00 2001 From: To Minh Tri Date: Tue, 30 Aug 2022 13:03:39 +0700 Subject: [PATCH] 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 --- 01_Day_JavaScript_Refresher/01_javascript_refresher.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.