What is a Type System
Type
값을 갖는 다양한 속성 및 함수을 쉽게 참조할 수 있습니다.
"red"
- string
- 문자열의 속성과 메서드가 모두 포함된 값입니다.
Types
Primitive Types: number, boolean, void, undefiend, string, symbol, null
Object Types: functions, arrays, classes, objects
왜 우리는 타입을 신경써야 하는가
- type은 Typecript Compiler에서 오류를 분석하는 데 사용됩니다.
- 유형을 사용하면 다른 엔지니어가 코드에 어떤 값이 있는지 이해할 수 있습니다.
'Typescript' 카테고리의 다른 글
타입스크립트 작성 규칙 (0) | 2020.12.28 |
---|---|
타입스크립트를 공부하자 (0) | 2020.12.23 |
Typescript Study (2) Annotations With Functions and Objects (0) | 2020.07.09 |
Typescript study (1) Type Annotations in Action and Variable (0) | 2020.07.09 |
Typescript. Do it 시리즈 (0) 타입스크립트는 무엇인가 (0) | 2020.07.03 |