타입이 존재하는 JavaScript 프로그래밍 언어
node
가 설치되어있지 않을 경우brew install node
npm install -g typescript
// hello.ts
function concat(left:string , right:string):string{
return left+right;
}
let hello:string = concat("hello", "world");
console.log(hello);
tcs hello.ts