Skip to main content


Member since Feb 9, 2011

Recent Blog Comments By Victor

  • Javascript's Implicit Boolean Conversions

    Posted on Feb 10, 2011 at 7:19 PM

    That was just an example I ran into when looking into an application. Personally I would have evaluated it as a bool rather than using comparison. But nevertheless it's weird, I know that non-empty strings should always be true. Which you've shown above. Must be an inconsistency of js...... read more »

  • Javascript's Implicit Boolean Conversions

    Posted on Feb 9, 2011 at 8:18 PM

    Interestingly if you do: true == 2 (or any number besides 0) --> FALSE true == 1 --> TRUE also even more interesting: true == "1" --> TRUE true == "2" (or any other string besides "1") --> FALSE if anyone would care to explain this feel free to do so...... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel