Don't worry bro, here the code is:
var myObj=function(){
var value=null
this.setValue=function(strValue){
this.value=strValue;
};
this.getValue=function(){
return this.value;
};
};
You can call this object like this:
var obj= new myObj();
obj.setValue("Hi!");
alert(obj.getValue());