Last active
October 16, 2021 20:58
-
-
Save natanfeitosa/fe1af4513263720d84f12319622a36b5 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
const test = function () { | |
if (true) { | |
const stringTest = 'hello' | |
console.log(stringTest) | |
} | |
console.log(stringTest) | |
} | |
test() | |
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