Looking for javascript Answers? Try Ask4KnowledgeBase
Looking for javascript Keywords? Try Ask4Keywords

JavaScript Reassigning constants


Example

You can't reassign constants.

const foo = "bar";
foo = "hello";

Prints:

Uncaught TypeError: Assignment to constant.