
…an still change its properties, etc.), it does at least protect the instance from being reassigned. Another reason to prefer const over var is that it is block scoped, not function scoped. That means you won’t accidentally add const-defined variables to the global scope if you define them within a block (such as part of an if statement or loop) but not within a function.