compare boolean in javascript

Solutions on MaxInterview for compare boolean in javascript by the best coders in the world

showing results for - "compare boolean in javascript"
Mika
01 May 2016
1//to compare a boolean:
2// signs to use - 
3// "<" - Less than. 
4// ">" - Greater than 
5// "==" - Equal to 
6
7if (13>7) // This is comparing if 13 is greater than 7 or not.
8
9if (2<7) // This is comparing if 2 is less than 7 or not.
10
11if (3==3) // This is comparing if the two numbers entered are equal
12
13
14 
15
16
17