Relative Content

Tag Archive for javascriptbrowserscopefrontendweb-frontend

JavaScript Scope Reset

I’m trying to reset the scope, as in hide all variables except a select few, in JavaScript. I know I can use the with keyword and a proxy, but it is deprecated and not allowed in strict mode. As far as I know, there are no other ways to hide all variables.