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 |
Tags
- MongoDB
- 자료구조
- Queue
- nodejs
- class
- Express
- Nest.js
- 정렬
- Bull
- flask
- OCR
- MySQL
- game
- TypeScript
- mongoose
- dfs
- 게임
- GIT
- nestjs
- AWS
- Python
- JavaScript
- cookie
- jest
- Sequelize
- Dinosaur
- react
- 공룡게임
- typeORM
Archives
- Today
- Total
목록abstract class (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