From 96ab8a2f5582c93679de704c1677decb0fb91687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ula=C5=9F=20Can=20Zorer?= Date: Sun, 29 Oct 2023 10:48:43 +0100 Subject: [PATCH] Variable c is still accessible, d is the one that is not accessible anymore. --- 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..29fecbf 100644 --- a/01_Day_JavaScript_Refresher/01_javascript_refresher.md +++ b/01_Day_JavaScript_Refresher/01_javascript_refresher.md @@ -1672,7 +1672,7 @@ function letsLearnScope() { let d = 40 console.log(a, b, c) // Python 20 30 } - // we can not access c because c's scope is only the if block + // we can not access d because d's scope is only the if block console.log(a, b) // JavaScript 10 } letsLearnScope()