We help IT Professionals succeed at work.

Javascript global variable alternative

oggiemc
oggiemc used Ask the Experts™
on
Hello all,

Suppose i have a few funcitons within a section of code..I want to make certain variables available to all the functions but i dont want to make them global (avoid polluting the global namespace)..What way could i go about doing this?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®