What is the point of making values private versus public? It seems like it's just more work on my part... (this is assuming i'm the only one who will ever use these functions...)
Is there some sort of security concern with this?
function att1() {
this.value = "";
}
function att2() {
var _value = "";
this.setValue = function(val){_value=val;}
this.getValue = function(){return _value;}
}