interface Human {
name: string;
age: number;
gender: string;
}
const person = {
name: "Seunghwan";
age: 30;
gender: gender: "male";
}
const sayHi = (person): string => {
return `Hello ${person.name}, you are ${person.age}, you are a ${person.gender}!`;
};
console.log(sayHi(person));
export {};
'Uber Eats' 카테고리의 다른 글
# 2-5 TypeScript - BlockChain (0) | 2021.02.11 |
---|---|
# 2-4 TypeScript - class (0) | 2021.02.10 |
# 2-2 TypeScript 특징 및 컴파일 위치 및 타입스크립트 설정 (0) | 2021.02.10 |
# 2-1 TypeScript - 특징 및 규칙 (0) | 2021.02.10 |
# 2-0 TypeScript - config setting 환경설정 (0) | 2021.02.10 |