function Class(){ var curThis = this; this.publickMethod = function(){ console.log(this); privateMethod.apply(this, arguments); }; function privateMethod(){ console.log(curThis); console.log(this); }; }; var a = new Class(); a.publickMethod();