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

Why Does {} == False Evaluate To False While [] == False Evaluates To True?

Why does {} == false evaluate to false while [] == false evaluates to true in javascript? Solutio… Read more Why Does {} == False Evaluate To False While [] == False Evaluates To True?

Javascript Logical Operators - And Vs. Or

I'm relatively new to Javascript and programming in general. Today while writing a simple tripl… Read more Javascript Logical Operators - And Vs. Or

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

Interval Comparison Doesn't Bomb In Js

Why doesn't interval comparison bomb in JavaScript? if(-1 Solution 1: Because JavaScript allow… Read more Interval Comparison Doesn't Bomb In Js

What Is The Order Of Precedence For Boolean Operators In Js?

e.pageX = e.clientX + (html && html.scrollLeft || body && body.scrollLeft || 0) - (… Read more What Is The Order Of Precedence For Boolean Operators In Js?