MediumConceptAdvanced JavaScript
What is the difference between Object.freeze and const?
What a good answer covers
const prevents rebinding the variable, while Object.freeze makes an object's own properties read-only at its top level. Freeze is shallow, so nested objects stay mutable.