advice, Development, programming JavaScript: empty string is false October 25, 2013 amy >>> '' ? 'nope' : 'sure' "sure" >>> ' ' ? 'nope' : 'sure' "nope" Also, other oddities: true + 1 == 2 false + 1 == 1 http://11heavens.com/falsy-and-truthy-in-javascript Tweet