I'm trying to create a custom constructor in Javascript but I can't seem to get why the Console won't log the 'Letters' property of "Investigating" which was created by the constructor "Verb":
function Verb (tense, transitivity) {
this.tense = tense;
this.transitivity = transitivity;
**this.letter1 = this.charAt(0);
this.letter2 = this.charAt(2);
this.letter3 = this.charAt(4);
this.Letters = this.letter1 + " " + this.letter2 + " " + this.letter3;**
}
var Investigating = new Verb ("present", "transitive");
console.log(Investigating.tense); // present
**console.log(Investigating.Letters); //console doesn't log anything**
What am I doing wrong here? Would appreciate any help you guys, thanks.