const is not constant
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