소스 코드를 기록하는 남자

'operator'에 해당되는 글 1건

  1. JavaScript - bool data type converting

JavaScript - bool data type converting

JavaScript

 

False

Boolean(0)
Boolean(Nan)
Boolean('')
Boolean(null)
Boolean(undefined)

 

these 5 cases are returning false. Except these cases are returning true

 

Equality Operator  
== both side value are same
!= both side value are different
=== both side value and data type are same
!== both side value and data type are different

 

'JavaScript' 카테고리의 다른 글

JavaScript - typeof(), prompt(), String(), Number()  (0) 2019.09.14
JavaScript - Function Executing Process  (0) 2019.09.14
JavaScript - Global Variable  (0) 2019.09.14
JavaScript - Hoisting  (0) 2019.09.14
JavaScript - window.onload  (0) 2019.09.14