I have create object lik
e this
testObj.prototype = {
cVar: 15,
init: function(c){
/*initialization code*/
this.cVar = c;
}
};
var a = new testObj(10);
var b = new testObj(20);
Now both object's cVar values is 20. Are they sharing the variable? How i can get seperate variable for each object?