Skip to main content

Iulian Margarintescu

Member since Jul 11, 2012

Recent Blog Comments By Iulian Margarintescu

  • Javascript's Implicit Boolean Conversions

    Posted on Jul 12, 2012 at 5:41 AM

    @Chris: Thanks for your answer. I understand how string is "not false" in js, but the weird thing is that you would expect something that is "not false" to be "true" :) Also this is a bit surprising: "true" == true => false "true" == false =>... read more »

  • Javascript's Implicit Boolean Conversions

    Posted on Jul 11, 2012 at 6:45 AM

    Another one that surprised me today: Try this in a JS console: "true" == true ( outputs false !! ) if( "true" ) { return "1"; } else { return "2"; } (outputs "1") if( "true" == true ) { return "1"; } else { return "2&... 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