Tag Archives: closures

Create private variables in JavaScript using closures

When you’re coming from other programming languages to JavaScript one of the things you can find frustrating is the lack of private variables. I know, coming from ActionScript to JavaScript, I was finding myself accidentally overwriting a variable and breaking … Continue reading

Posted in javascript | Tagged , | 1 Comment