I have a set of class values that I need to store in another class.
function retainValues(data1,data2){
this.first = data1;
this.second = data2;
}
I am looking for a way to save these class values in a different class like this ->
let other = NewClass();
other.store(retainValues(1,2));
other.store(retainValues(5,2));
I'm not sure how to create the NewClass() to hold these values, any assistance would be appreciated! Thank you!