¡@

Home 

javascript Programming Glossary: this.publicmember

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 this.publicMember I am a public member this.publicMethod function console.log.. this.publicMethod function console.log privateMember this.publicMember var o new SomeObject console.log typeof o.privateMember typeof.. am a private member var privateMethod function console.log this.publicMember this.publicMember I am a public member this.publicMethod function..