Preventing modification of JavaScript objects

Published: September 13, 2012
Excerpt: “Due to its dynamic nature, JavaScript makes it extremely easy to modify objects that you do not own. It also means that anyone can easily modify objects that you have written. This is seemingly a very powerful feature and many developers may be tempted to use it in order to extend or modify behavior of objects (even DOM methods such as document.getElementById() can be overwritten). “

Tagged with:
Posted in Javascript