Created
June 25, 2012 19:31
-
-
Save renatoargh/2990730 to your computer and use it in GitHub Desktop.
js-escopo-1
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 global = 'Eu sou uma variavel global!'; | |
function prisao() { | |
var prisioneiro = 'Eu sou uma variavel local!'; | |
} | |
prisao(); | |
console.log(global); | |
console.log(prisioneiro); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment