class SoftwareEngineer {
constructor(name, role, secondIdiom, motherTongue) {
this.name = name;
this.role = role;
this.secondIdiom = secondIdiom;
this.motherTongue = motherTongue;
}
aboutMe() {
return `Hello, my name is ${this.name}, i'am ${this.role}.
My native language is ${this.motherTongue}, but i can also speak ${this.secondIdiom}`
}
}
me = new SoftwareEngineer('Julian Trujillo', 'Software Engineer', 'English', 'Spanish');
console.log(me.aboutMe());
// Hello, my name is Julian Trujillo, i'am Software Engineer.
// My native language is Spanish, but i can also speak English
- Instagram - https://www.instagram.com/codewcoaxus
- TikTok - www.tiktok.com/@codewcoaxus