Skip to content

Instantly share code, notes, and snippets.

@topherPedersen
Created December 31, 2019 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save topherPedersen/623dbfa3afb9085878657424c44f73cc to your computer and use it in GitHub Desktop.
Save topherPedersen/623dbfa3afb9085878657424c44f73cc to your computer and use it in GitHub Desktop.
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