▲ JavaScript encapsulation & the module pattern at www.aviyehuda.com▼6 up and 0 down, posted by aviyehuda 4291 days ago 1 comment
ahultgren 4291 days ago. link 1 point ▲ ▼Note that while x may be private, it's shared for all instances. Might be useful for private constants, but not for variables.