This post was originally published on my old back on September 26th, 2011. The content provided here is a republishing of the original post. Most folks know how to mimic public, private, and “privileged” variables in Javascript, but I think at some point, when getting familiar with prototypal inheritance, most scripters wonder if there is…
True private variables in JavaScript with prototype
Posted on