Is there a way to invoke greeting() from the prototype from inside a constructor function?
const Person = function() {
this.name = "Someone's Name"
this.greeting()
}
Person.prototype.greeting = function(name) {
return this.name;
}
let test = new Person();
console.log(test);