Click here to Skip to main content
15,881,172 members
Articles / Web Development

Encapsulation in JavaScript

Rate me:
Please Sign up or sign in to vote.
4.83/5 (56 votes)
1 Oct 2010CPOL3 min read 140.1K   565   71  
This article demonstrates how to create public and private members in JavaScript through a sample.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Trigent Software Private Limited
India India
I'm a software developer from south tip of India. I spent most of the time in learning new technologies. I've a keen interest in client-side technologies especially JavaScript and admire it is the most beautiful language ever seen.

I like sharing my knowledge and written some non-popular articles. I believe in quality and standards but blames myself for lagging them.

I believe in small things and they makes me happy!

Comments and Discussions