Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are two types of immutability in JS: one is rebinding a variable (forbidden by the const keyword) and the other is modifying an object (forbidden by freeze)

In javascript these are similar as environment closures behave sort of similar to prototype chains.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: