Created
December 31, 2019 02:33
-
-
Save topherPedersen/623dbfa3afb9085878657424c44f73cc to your computer and use it in GitHub Desktop.
const is not constant
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 myConstant = "const stands for constant. It is immutable and does not change..."; | |
console.log(myConstant); | |
function constIsNotReallyConstant() { | |
const myConstant = Math.random().toString(); | |
console.log(myConstant); | |
} | |
for (var i = 0; i < 13; i++) { | |
constIsNotReallyConstant(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment