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
- 게임
- AWS
- react
- Nest.js
- flask
- game
- Sequelize
- JavaScript
- mongoose
- 정렬
- GIT
- 공룡게임
- nestjs
- MongoDB
- TypeScript
- dfs
- 자료구조
- cookie
- nodejs
- Bull
- typeORM
- MySQL
- Python
- class
- Dinosaur
- jest
- Express
- Queue
- OCR
Archives
- Today
- Total
목록abstract method (1)
포시코딩
[TypeScript][노마드코더] #4 CLASSES AND INTERFACES(1)
Class 클래스 TypeScript에서 Class를 만들 때 기존 JavaScript에서 하던 행동들을 줄일 수 있다. 예시 TypeScript Class Player { constructor ( private firstName: string, private lastName: string ) } 변환된 JavaScript class Player { constructor (firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } } 하지만 private 선언을 한게 사라졌는데 위에서 private 키워드는 오로지 TypeScript가 보호해주기 위해서만 사용하는 것이고 JavaScript에서는 사용되지 않는다. TypeS..
JavaScript
2023. 1. 20. 20:13