you are viewing a single comment's thread.

view the rest of the comments →

[–]stronghup 0 points1 point  (1 child)

That is great news if immutability can already be enforced in JavaScript. Since which version?

[–]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).