jQuery Howto Short and "to the point" jQuery & JavaScript related posts for your daily pleasure. Recently I posted my findings about private fields in JavaScript. So this is a continuation of the post and it talks about public fields in your JavaScript code. So here is a quick example of public properties in your code: function User() { // Private property var name = ''; return { // Public propert
![Object-Oriented JavaScript, how to achieve public properties/fields](https://cdn-ak-scissors.b.st-hatena.com/image/square/16868035f29c85c9ecaf10c12ac363ed45498838/height=288;version=1;width=512/https%3A%2F%2F1.bp.blogspot.com%2F-coXWWZJvqEo%2FUkEg_sUsxcI%2FAAAAAAAAAMQ%2FCj40CezSnU8%2Fs720%2Fjquery.png)