Reassigning constants
suggest changeYou can't reassign constants.
const foo = "bar";
foo = "hello";
Prints:
Uncaught TypeError: Assignment to constant.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents