Boolean Values JavaScript

JavaScript as others languages have a value to represent just two states. Much of times is a result from one comparison, for example:

3 > 2
// true
5 >= 7
//false
true == 1
//true
false == 0
//true
true === 1
//false
false === 0
//false
NaN == NaN
// false
NaN === NaN
// false

Passionate reading || Coding Addicted || FullStack Web Developer from Costa Rica

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store