function Developer(name) {
this.name = name;
}
Developer.prototype.greet = function () {
console.log("Hi, I'm", this.name);
};
const davi = new Developer('Davi Alexandre');
davi.greet();
davi-alexandre Goto Github PK
Name: Davi Alexandre
Type: User
Company: localhost
Bio: Full-stack debugger | CS student at UFAL
Location: Alagoas, Brazil