0

What's the use of boolean operator? where to use them and how?

25th Jan 2016, 1:27 PM
Nirob
4 Respuestas
+ 1
boolean operators: true,false boolean operators are results of coditonal statements and they are basically used to execute a block of code based on the result of the statement. for example: if(5>2) // conditional statement { // statement block } result of the statement in the bracket after if is true because 5 is greater than 2. so the statement block after if will be executed. if the result would have been false then the control would skip the statement block after the if . that's how we use boolean operators in JavaScript
2nd Jul 2016, 6:34 PM
Ankit Ak Singh Kharb
Ankit Ak Singh Kharb - avatar
0
to condition the váriable when you need to limit the answer...like input a password whit restrictions..
27th Apr 2016, 5:06 PM
Leo Ron
Leo Ron - avatar
- 1
Boolean operators are very useful when we are working with databases especially forms
16th Feb 2016, 7:41 AM
Atiqullah Naemi
Atiqullah Naemi - avatar
- 1
true
5th Jul 2016, 6:36 PM
Boris Andrés Litardo Moyano
Boris Andrés Litardo Moyano - avatar