From 1739d9bfcd73f196db3adfa778967ad8e9fbaa07 Mon Sep 17 00:00:00 2001 From: Derrek Gass Date: Mon, 12 Oct 2020 13:44:32 -0700 Subject: [PATCH] working on scope day1 --- solutions/day-01/index.html | 1 + solutions/day-01/scope.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 solutions/day-01/scope.js diff --git a/solutions/day-01/index.html b/solutions/day-01/index.html index 4f1c326..300686b 100644 --- a/solutions/day-01/index.html +++ b/solutions/day-01/index.html @@ -9,5 +9,6 @@ + \ No newline at end of file diff --git a/solutions/day-01/scope.js b/solutions/day-01/scope.js new file mode 100644 index 0000000..6d365d6 --- /dev/null +++ b/solutions/day-01/scope.js @@ -0,0 +1,8 @@ +//scope.js +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