250x250
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
- fileinput
- CSS
- locals()
- remove()
- Database
- count()
- __getitem__
- 오버라이딩
- __annotations__
- MySqlDB
- items()
- choice()
- node.js
- 파이썬
- __len__
- MySQL
- fnmatch
- decode()
- glob
- discard()
- shuffle()
- shutil
- JS
- randrange()
- inplace()
- mro()
- HTML
- View
- __sub__
- zipfile
Archives
- Today
- Total
흰둥이는 코드를 짤 때 짖어 (왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!왈!)
(JS) 옵셔널 체이닝 본문
728x90
반응형
옵셔널 체이닝(Optional Chaining)
- ECMA Script 11 버전에 추가
- null 또는 undifined를 확인할 때 쓰이는 연산자
- ?. , ??
let dog = {}
dog && dog.name && dog.age
dog?.dog.name
dog.name?.age
728x90
반응형
'HTML, CSS, JS' 카테고리의 다른 글
(JS) JSON (0) | 2023.04.13 |
---|---|
(JS) async와 await (0) | 2023.04.13 |
(JS) 프로미스 (0) | 2023.04.12 |
(JS) 예외처리 (0) | 2023.04.12 |
(JS) 세트와 맵 (0) | 2023.04.11 |