[Operator] JS - 비교연산자 (Comparison Operator)
비교연산자 (Comparison Operator)
연산자 |
정의 |
---|
== |
값만 같다 (equal to) |
=== |
값과 타입 모두 같다 (equal value and equal type) |
!= |
같지 않다 (not equal) |
!== |
값이 같지 않거나 타입이 같지 않다 (not equal value or not equal type) |
> |
크다 (greater than) |
< |
작다 (less than) |
>= |
크거나 같다 (greater than or equal to) |
<= |
작거나 같다 (less than or equal to) |
? |
3항 연산자 (ternary operator) |
|
방문 감사합니다. (즐겨찾기 등록: Ctrl + D) |
|
|