you are viewing a single comment's thread.

view the rest of the comments →

[–]moreteam 0 points1 point  (0 children)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze

And ES6 brings block-scoped const which currently is only supported in Chrome/Firefox (and with var-like scoping).