<?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: One Line Random Boolean in JavaScript</title>
	<atom:link href="http://ralphholzmann.com/2009/12/28/one-line-random-boolean-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://ralphholzmann.com/2009/12/28/one-line-random-boolean-in-javascript/</link>
	<description>Web Development - jQuery, PHP, MySQL. In that order.</description>
	<lastBuildDate>Tue, 23 Feb 2010 18:28:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ralph</title>
		<link>http://ralphholzmann.com/2009/12/28/one-line-random-boolean-in-javascript/comment-page-1/#comment-5</link>
		<dc:creator>Ralph</dc:creator>
		<pubDate>Mon, 28 Dec 2009 21:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://ralphholzmann.com/?p=38#comment-5</guid>
		<description>Josh Dean, you&#039;re right!

My initial intuition was that the double negation (!!) takes any pseudo boolean (like the number zero or an empty string) and converts it into a true JavaScript boolean.

However, in this case, since the value is inherently random to begin with, only one negation is needed to convert it to a true boolean. Thanks for the comment! I&#039;ll update the post shortly.</description>
		<content:encoded><![CDATA[<p>Josh Dean, you&#8217;re right!</p>
<p>My initial intuition was that the double negation (!!) takes any pseudo boolean (like the number zero or an empty string) and converts it into a true JavaScript boolean.</p>
<p>However, in this case, since the value is inherently random to begin with, only one negation is needed to convert it to a true boolean. Thanks for the comment! I&#8217;ll update the post shortly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Dean</title>
		<link>http://ralphholzmann.com/2009/12/28/one-line-random-boolean-in-javascript/comment-page-1/#comment-4</link>
		<dc:creator>Josh Dean</dc:creator>
		<pubDate>Mon, 28 Dec 2009 20:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://ralphholzmann.com/?p=38#comment-4</guid>
		<description>Is the second negation really that necessary? If you check the typeof of the just a single negation, it still returns &quot;boolean.&quot;

Is this a cross browser specific fix?</description>
		<content:encoded><![CDATA[<p>Is the second negation really that necessary? If you check the typeof of the just a single negation, it still returns &#8220;boolean.&#8221;</p>
<p>Is this a cross browser specific fix?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
