function Parent() {
}
Parent.prototype.func1 = function(callback) {
this.callback = callback;
}
Parent.prototype.func2 = function() {
this.callback.fetchData()
}
in the constructor, whether it is an attribute defined by func1, such as this.callback. Can you also access it in func2?