Created
March 26, 2017 02:43
-
-
Save cristofersousa/c5fa5a43d32471c1233627dfd18211f3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ``` | |
| let scope = "global" // declara uma variável global | |
| function checkscope() { | |
| let scope = "local"; // declara uma variável local com o mesmo nome da global | |
| return scope; | |
| } | |
| checkscope(); | |
| > saída: "local" | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Altere o arquivo para .md