Learn Javascript 2017, Scoping, Codecademy

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=-w1SF_yUDOY



Duration: 2:17
212 views
0


In this challenge we are giving a function myApartment() which contains variables that we want to access outside of our code. Since the previous javascript lessons taught us that a variable must be created globally if we want to access it globally. Variables created inside functions are local to that function.







Tags:
javascript functions
functions in javascript
codecademy functions
javascript global scope
scoping