Что я понял, так это то, что у вас есть функция подкачки в parent и вы хотите вызвать ее перед выполнением какой-либо операции внутри функции ответа child.
Если это так, надеюсь, я ответил на ваш запрос ниже.
class Parent {
// some code
swap (x, y) {
let temp = this.x;
this.x = this.y;
this.y = temp;
}
}
class Child extends Parent {
answer(x, y) {
super.swap.call(this, x, y); // Call parent func that swaps variable using child context
this.x = x;
this.y = y;
return 75 - this.x + this.y;
}
}
let v = new Child();
v.answer(5, 15) === 65; //should be true
v.answer(15, 5) === 85; //should be true