<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Truthy and Falsy: When All is Not Equal in JavaScript</title>
	<atom:link href="http://www.sitepoint.com/blogs/2009/07/01/javascript-truthy-falsy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2009/07/01/javascript-truthy-falsy/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<lastBuildDate>Mon, 23 Nov 2009 05:23:27 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Craig Buckler</title>
		<link>http://www.sitepoint.com/blogs/2009/07/01/javascript-truthy-falsy/comment-page-1/#comment-927975</link>
		<dc:creator>Craig Buckler</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=11126#comment-927975</guid>
		<description>@Robert Katić
Yep - you&#039;re right. Well spotted - I&#039;ve fixed the article. It makes you wonder why undefined and null were both implemented. The difference is fairly subtle and uninitialized variables could have been set to null.

@Jaffa The Cake
Certainly !!([]) returns true. I&#039;m not surprised that ([]==true) fails, but then you&#039;d expect ([]==false) to fail too?!

It just goes to show how careful you need to be. It would not surprise me if there were inconsistencies between browsers too.</description>
		<content:encoded><![CDATA[<p>@Robert Katić<br />
Yep &#8211; you&#8217;re right. Well spotted &#8211; I&#8217;ve fixed the article. It makes you wonder why undefined and null were both implemented. The difference is fairly subtle and uninitialized variables could have been set to null.</p>
<p>@Jaffa The Cake<br />
Certainly !!([]) returns true. I&#8217;m not surprised that ([]==true) fails, but then you&#8217;d expect ([]==false) to fail too?!</p>
<p>It just goes to show how careful you need to be. It would not surprise me if there were inconsistencies between browsers too.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Katić</title>
		<link>http://www.sitepoint.com/blogs/2009/07/01/javascript-truthy-falsy/comment-page-1/#comment-927970</link>
		<dc:creator>Robert Katić</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=11126#comment-927970</guid>
		<description>(undefined == null) gives true.</description>
		<content:encoded><![CDATA[<p>(undefined == null) gives true.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jaffa The Cake</title>
		<link>http://www.sitepoint.com/blogs/2009/07/01/javascript-truthy-falsy/comment-page-1/#comment-927969</link>
		<dc:creator>Jaffa The Cake</dc:creator>
		<pubDate>Thu, 02 Jul 2009 10:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=11126#comment-927969</guid>
		<description>The true &amp; false thing gets a bit weird with objects and arrays...

if ( [] ) {
&#160;&#160;// this runs
}

if ( [] == true ) {
&#160;&#160;// this does not run
}

if ( [] == false ) {
&#160;&#160;// this does run
}

Jake.</description>
		<content:encoded><![CDATA[<p>The true &amp; false thing gets a bit weird with objects and arrays&#8230;</p>
<p>if ( [] ) {<br />
&nbsp;&nbsp;// this runs<br />
}</p>
<p>if ( [] == true ) {<br />
&nbsp;&nbsp;// this does not run<br />
}</p>
<p>if ( [] == false ) {<br />
&nbsp;&nbsp;// this does run<br />
}</p>
<p>Jake.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.sitepoint.com/blogs/2009/07/01/javascript-truthy-falsy/comment-page-1/#comment-927898</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 01 Jul 2009 01:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=11126#comment-927898</guid>
		<description>I thought === was a php specific operator.  Learn something new everyday :)</description>
		<content:encoded><![CDATA[<p>I thought === was a php specific operator.  Learn something new everyday :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lotrgamemast</title>
		<link>http://www.sitepoint.com/blogs/2009/07/01/javascript-truthy-falsy/comment-page-1/#comment-927880</link>
		<dc:creator>lotrgamemast</dc:creator>
		<pubDate>Tue, 30 Jun 2009 21:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=11126#comment-927880</guid>
		<description>I&#039;ve gotten into the habbit of always using the strict compares when writing javascript.

It also catches stuff like:

if ( &quot;0&quot; == 0 ) // true
if ( &quot;0&quot; === 0 ) // false

So you know you&#039;re getting the right data type.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve gotten into the habbit of always using the strict compares when writing javascript.</p>
<p>It also catches stuff like:</p>
<p>if ( &#8220;0&#8243; == 0 ) // true<br />
if ( &#8220;0&#8243; === 0 ) // false</p>
<p>So you know you&#8217;re getting the right data type.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Balaji</title>
		<link>http://www.sitepoint.com/blogs/2009/07/01/javascript-truthy-falsy/comment-page-1/#comment-927874</link>
		<dc:creator>Balaji</dc:creator>
		<pubDate>Tue, 30 Jun 2009 21:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=11126#comment-927874</guid>
		<description>&quot;Great article!  Thanks for taking the time to explain Truth and Falsy values.</description>
		<content:encoded><![CDATA[<p>&#8220;Great article!  Thanks for taking the time to explain Truth and Falsy values.</p>]]></content:encoded>
	</item>
</channel>
</rss>
