값뿐만 아니라 타입까지 같은지를 체크한다. !== 는 타입까지 다른지를 체크한다.

docmode === undefined 이런식으로 쓰기도 한다.

 

 

=== This is the strict equal operator and only returns a Boolean true if both the operands are equal and of the same type. These next examples return true:

a === 2

b === 4

 

!== This is the strict not equal operator and only returns a value of true if both the operands are not equal and/or not of the same type. The following examples return a Boolean true:

a !== b

a !== "2"

4 !== '4'

+ Recent posts