| javascript Programming Glossary: privatemethodSimplest/Cleanest way to implement singleton in JavaScript? http://stackoverflow.com/questions/1479319/simplest-cleanest-way-to-implement-singleton-in-javascript  this var myInstance function var privateVar '' function privateMethod ... return public interface publicMethod1 function all private.. 
 What is the difference between var thing and function thing() in JavaScript? http://stackoverflow.com/questions/1704618/what-is-the-difference-between-var-thing-and-function-thing-in-javascript  function var privateMember I am a private member var privateMethod function console.log this.publicMember this.publicMember I am.. function console.log privateMember this.publicMember this.privateMethodWrapper function privateMethod.call this var o new SomeObject.. this.publicMember this.privateMethodWrapper function privateMethod.call this var o new SomeObject console.log typeof o.privateMethod.. 
 javascript singleton question http://stackoverflow.com/questions/1895635/javascript-singleton-question  closures var myInstance function var privateVar function privateMethod ... return public interface publicMethod1 function private members.. singleton var instance function var privateVar function privateMethod ... return public interface publicMethod1 function  private.. 
 Understanding how JS Module Pattern works http://stackoverflow.com/questions/4311949/understanding-how-js-module-pattern-works  from within AppLaunch.Admin namespace Private Methods var _privateMethod function log privateMethod accessed only from within AppLaunch.Admin.. namespace Private Methods var _privateMethod function log privateMethod accessed only from within AppLaunch.Admin Last variable in a.. arguments ' '  return init function  Calling private _privateMethod  Calling Public this.myPublicMethod  Also Calling Public CompanyName.AppName.myPublicMethod.. 
 creating objects from JS closure: should i use the “new” keyword? http://stackoverflow.com/questions/9304473/creating-objects-from-js-closure-should-i-use-the-new-keyword  function Constructor var privateProperty 'private' var privateMethod function alert 'called from public method' return publicProperty.. function  alert 'called from public method'  getter privateMethod var myObj new Constructor public var pubProp myObj.publicProperty.. private will cause errors myObj.privateProperty myObj.privateMethod a user commented on my answer saying Also if your function explicitly.. 
 |