Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.