JS Truthiness

 '0' && ('0' == false)
// true

We’ll just have to agree to disagree, javascript.


{: .space}

Update: this is what I mean by “truthy” and “falsy”:

function truthy(x) { return !!x; };
function falsy(x) { return !x; };

Comments

Contact Us

We'd love to hear from you. Get in touch!

Boston

201 South Street, Boston, MA 02111

New York

315 Church St, New York, NY 10013

Phone & Email

(617)379-2752 hello@bocoup.com