¡@

Home 

javascript Programming Glossary: privatemember

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

of private class members Code var SomeObject function var privateMember I am a private member this.publicMember I am a public member.. am a public member this.publicMethod function console.log privateMember this.publicMember var o new SomeObject console.log typeof o.privateMember.. var o new SomeObject console.log typeof o.privateMember typeof o.publicMember o.publicMethod Output undefined string..

JavaScript Namespace Declaration

http://stackoverflow.com/questions/2504568/javascript-namespace-declaration

function Namespace Namespace.MyClass function var privateMember private function myPrivateMethod param alert param privateMember.. private function myPrivateMethod param alert param privateMember MyClass.MyPublicMember public MyClass.MyPublicMethod function..