avoid Javascript variable modification from browser console
问题 I have a problem. I have defined some global variables and namespaced it into an object called "app". Example: window.app : { foo : null, bar : null, } Well, the idea is that I want to be able to modify those variables from any module by calling app.foo = "baz" or app.bar = "baz", but I don't want the user to be able to modify those variables from the browser console (element inspector). Is it possible? PD: Well, I have a Backbone.js collection which is sinchronized with the server. I don't