Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
Chemistry
Biology and Medical
Earth Sciences
Computer Science
Computing and Technology
DIY Projects
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Other Sciences
Programming and Computer Science
JS Variable Hygiene: Preventing Global Var Access
Reply to thread
Message
[QUOTE="Filip Larsen, post: 6861239, member: 237222"] It was a suggestion for a simple change compared to the OP starting point on how to avoid a web of global variables, and its based on the common javascript mechanism of using a function to "hide" internal structures. Take a look at [URL]https://www.dofactory.com/javascript/design-patterns[/URL] for more examples. [/QUOTE]
Insert quotes…
Post reply
Forums
Other Sciences
Programming and Computer Science
JS Variable Hygiene: Preventing Global Var Access
Back
Top