Skip to content Skip to sidebar Skip to footer
Showing posts with the label Boolean

Boolean Operators Which Return One Of The Operands

In Python, and maybe in Javascript, the boolean or and and operators return one of the operands, in… Read more Boolean Operators Which Return One Of The Operands

Short Circuit Evaluation Order

All this time my thinking of short circuit evaluations seems to be wrong. In javascript: var a = fa… Read more Short Circuit Evaluation Order

Why If([]) Is Validated While [] == False In Javascript?

if([] == false) alert('empty array is false'); alert(+[]) // alert 0 if([]) alert('empt… Read more Why If([]) Is Validated While [] == False In Javascript?