So in my code I have an object:
function myObject(value1, value2, value3){
    this.value1 = value1;
    this.value2 = value2;
    this.value3 = value3;
}
Then I have a function:
function myFunction(value1, value2, value3) {
    value1 += value2;
    value3 += 1;
};
How could I use something like this to change the value of the object. For example:
var object1 = new myObject(1,2,3);
So eventually, value1 would become 3, and value3 would become 4. Thank you in advance, I'm new to OOP
 
     
     
     
     
     
     
     
     
    