Last active
October 16, 2021 20:58
-
-
Save natanfeitosa/74708ac314e6330e259d35d7a127b850 to your computer and use it in GitHub Desktop.
Arquivo gist para exemplificar e explicar a diferença entre var, const e let
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
let test = function () { | |
console.log(stringTest) | |
if (true) { | |
let stringTest = 'hello' | |
console.log(stringTest) | |
} | |
console.log(stringTest) | |
} | |
test() | |
let test = 'não sou mais uma função' | |
console.log(test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment