working on scope day1

pull/73/head
Derrek Gass 5 years ago
parent 5fedde7d42
commit 1739d9bfcd

@ -9,5 +9,6 @@
<script src="helloworld.js"></script> <script src="helloworld.js"></script>
<script src="introduction.js"></script> <script src="introduction.js"></script>
<script src="exercise1.js"></script> <script src="exercise1.js"></script>
<script src="scope.js"></script>
</body> </body>
</html> </html>

@ -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)
}
Loading…
Cancel
Save