1 min readFeb 16, 2019
Hello Henry Hwangbo thank you for reading. Actually my intent was indeed to say that a constant is mutable as opposed to an enum, which is not. Per the MDN documentation on const:
“The const
declaration creates a read-only reference to a value. It does not mean the value it holds is immutable, just that the variable identifier cannot be reassigned. For instance, in the case where the content is an object, this means the object's contents (e.g., its properties) can be altered.”
Link: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const#Description