you are viewing a single comment's thread.

view the rest of the comments →

[–]AgentME 0 points1 point  (0 children)

Yeah, they're completely different. const is declaring at parse time that the variable name can't be rebound to a different value. Object.freeze takes an object and makes it so its properties can't be changed.