Say I have a function:
function parent() {
var address = "house";
var getAddress = function () {
return address;
}
}
How can I make another function that inherits these things?
Say I have a function:
function parent() {
var address = "house";
var getAddress = function () {
return address;
}
}
How can I make another function that inherits these things?