Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- promise
- 이벤트핸들링
- callback함수
- useState
- REACT
- addEventListener
- this 객체
- JavaScript
- 이벤트
- 리액트
- Frontend Study
- useRef
- webProject
- CSS
- 비동기함수
- Props
- 컴포넌트
- FrontendStydy
- 자바스크립트
- 렌더링
- 배열
- input
- 함수 실행
- frontendstudy
- try.. catch
- HTML
- 배열메소드
- DOM
- typeScript
- 메소드 실행
Archives
- Today
- Total
목록array (1)
이다닷
[TypeScript] Day 2 - Array와 Tuple, TypeScript의 객체
TypeScript에서의 Array와 Tuple의 데이터 타입 1. Array 타입 배열 선언 방법 (1) // 첫 번째 방법: 타입 + [] let arr1: number[] = [1, 2, 3]; 배열 선언 방법 (2) // 두 번째 방법: Array let arr2: Array = [1, 2, 3]; 2. Tuple 타입 Tuple 선언 방법 let tuple: [string, number, boolean] = ['Hello', 42, true]; Array와 Tuple의 차이점 Array - 길이가 가변적이며, 동일한 타입의 요소로 구성된다. Tuple - 길이가 고정되어 있으며, 각 요소의 타입이 정해져 있다. JavaScript에는 없는 데이터 타입이며, TypeScript에서만 사용 가능하다..
TypeScript
2023. 11. 20. 18:00