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