Created
April 30, 2017 08:44
-
-
Save lenafaure/33c02fb446518951e63c1feb6b7870a0 to your computer and use it in GitHub Desktop.
Local variable prevails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myJob = "Developer"; | |
function showJob() { | |
var myJob = "Designer"; | |
console.log(myJob); | |
} | |
showJob(); // Prints "Designer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment