type User = {
name: string;
role: string;
skills: string[];
summary(): string;
};
const user: User = {
name: "Erfan Abouei",
role: "Backend Developer",
skills: ["Node.js", "TypeScript", "Express", "NestJS", "PostgreSQL", "Redis", "..."],
summary() {
return `${this.name} — ${this.role}\nSkills: ${this.skills.join(", ")}`;
}
};
console.log(user.summary());The first time I touched the keyboard keys I was about 5 years old From there, my fate was determined with computers. Now I know more than a beginner, but I still can't call myself a perfect person because no one is perfect 😊