Daily Archive for June 8th, 2009

The Truth of JavaScript

nFriedly posted an interesting refresher on JavaScript boolean evaluation of non-boolean values : Logical Operators and Truthy / Falsy.

It’s worth mentioning that JavaScript evaluates empty arrays as “true”, whereas PHP evaluates them as “false”.



693 feed subscribers
(readers who polled a feed this week)