반응형
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 |
Tags
- fastapi
- Android
- xcode
- 센토스
- 개발
- TensorFlow
- 리눅스
- IOS
- VirtualBox
- vsCode
- centos
- pydantic
- PYTHON
- unittest
- webpack
- androidstudio
- MachineLearning
- 맥
- 오블완
- 네트워크
- Chrome
- ReactNative
- build
- linux
- node
- MAC
- 티스토리챌린지
- react
- localserver
Archives
- Today
- Total
로메오의 블로그
[Typescript] getter setter 본문
반응형
class Fun {
private _name: string = '';
get name(): string {
return this._name;
}
set name(value: string) {
this._name = value;
}
}
const fun = new Fun();
fun.name = 'hello';
console.log(fun.name)
>> hello
반응형
'Frontend > ETC' 카테고리의 다른 글
| WebDAV 설정 - Synology NAS - KT공유기 설정 - Documents (0) | 2021.12.04 |
|---|---|
| lodash 자주 사용하는 메서드 정리 (0) | 2021.11.16 |
| [재귀함수] 트리 구조를 리스트 구조로 변환 (0) | 2021.11.04 |
| [POSTMAN] 팀 워크 스페이스 생성 [Team workspaces] (0) | 2021.11.03 |
| 반복문 도중에 종료하기 [for of, lodash, array, 배열] (0) | 2021.11.02 |
Comments