Answer the question
In order to leave comments, you need to log in
Way to track change of object instance properties in Javascript?
Hello Habrazhitel!
There is a constructor:
function Someobj(param1, param2) {
this.param1 = param1;
this.param2 = param2;
}
var mySuperObj = new Someobj();
mySuperObj.param1 = 20;
mySuperObj.param2 = 10;
function updateParam1(obj, newVal) {
obj.param1 = newVal;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question