📫 How to reach me wan@odds.team
My web portfolio: https://my-wan.vercel.app/
⚡ Fun fact Co-Founder & COO @ Thaibioscience Co.,Ltd
🟡 Software Developer @ ODDS-TEAM| 🟡
type UserInfo = {
name: string;
pronouns: string;
currentRole: string;
passions: string[];
};
const defaultUserInfo: UserInfo = {
name: "Suwan Khieanpap",
pronouns: "he/him/his",
currentRole: "Software Developer",
passions: ["Software Engineering", "Product Engineering", "Infrastructure as Code"],
};
const formatHeader = (): string => `
┌───────────────────────────────────┐
│ Greetings, visitor! │
└───────────────────────────────────┘
`;
const formatDetails = (userInfo: UserInfo): string => {
const { name, pronouns, currentRole, passions } = userInfo;
return `
✨ Name: ${name}
🌟 Pronouns: ${pronouns}
🚀 Role: ${currentRole}
🔥 Passions: ${passions?.join(", ")}
`;
};
const formatFooter = (): string => `Have a great day! 😊`;
const sayHi = (userInfo: UserInfo = defaultUserInfo): string =>
[formatHeader(), formatDetails(userInfo), formatFooter()].join("\n");
console.log(sayHi());