From a0c3f6a93207872b80be5464edcf8a5703d98abc Mon Sep 17 00:00:00 2001 From: Derrek Gass Date: Mon, 12 Oct 2020 13:46:08 -0700 Subject: [PATCH] working on scope day1 --- solutions/day-01/scope.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/solutions/day-01/scope.js b/solutions/day-01/scope.js index 6d365d6..a8da3ac 100644 --- a/solutions/day-01/scope.js +++ b/solutions/day-01/scope.js @@ -2,7 +2,8 @@ a = 'JavaScript' // is a window scope this found anywhere b = 10 // this is a window scope variable function letsLearnScope() { - console.log(a, b) - if (true) { console.log(a, b) - } \ No newline at end of file + if (true) { + console.log(a, b) + } +} \ No newline at end of file