JavaScript

[JavaScript] if 조건문 내 thuthy & falsy 자료들

hrming 2024. 1. 27. 18:55
truthy falsy
0 제외 숫자
'문자'
[]
{}
0
''
null
undefined
NaN