From 609dc079fff3255f0d083b6992b3b1aee8a53bb6 Mon Sep 17 00:00:00 2001 From: Eron <43992376+Eronred@users.noreply.github.com> Date: Mon, 12 Sep 2022 22:26:03 +0300 Subject: [PATCH] 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()) }) ``` --- 01_Day_JavaScript_Refresher/01_javascript_refresher.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_Day_JavaScript_Refresher/01_javascript_refresher.md b/01_Day_JavaScript_Refresher/01_javascript_refresher.md index 7d03fb4..8966568 100644 --- a/01_Day_JavaScript_Refresher/01_javascript_refresher.md +++ b/01_Day_JavaScript_Refresher/01_javascript_refresher.md @@ -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()) }) ```