In this scenario, I have a constructor set up as follows:
function Individuals(lastName) {
this.lastName = lastName;
this.firstName = [];
}
Additionally, there is a prototype defined like so:
Individuals.prototype.getFirstName = function() {
getName();
return firstName;
}
There's also a function called getName:
var getName = function() {
}
If the goal is to pass the value "Andrew" to the array this.firstName = []; within the getName function, how can this be achieved? Is it even feasible?