//TS 의 고유 기능이다.
let a = 'Malza';
// compile 도중 문제가 발생했다.
// number 는 string 과 맞지않다.
a = 39;
// 선언만 하면 type 은 any 가 된다.
let b;
// 내가 type 지정해 주는것. 이것을 First Type Annotation 이라고 한다.
let c: string;
c = "Malza"
c = 39; // error!
function hello(b: number) {
}
hello('malza'); // error!
hello(29) // good!