When I create the prototype out of scope, but referencing it I can not reach the nome property.
'use strict';
function Cachorro(nome) {
this.nome = nome;
this.late = () => {
console.log(`${this.nome}: Au au au!`);
}
};
Cachorro.prototype.morde = () => {
console.log(`${this.nome}: #mordendo`);
}
const dolly = new Cachorro("Dolly");
dolly.late()
dolly.morde()