<?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: How to do enumerations (enum) in javascript</title>
	<atom:link href="http://www.javascriptkata.com/2007/03/22/how-to-do-enumerations-enum-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javascriptkata.com/2007/03/22/how-to-do-enumerations-enum-in-javascript/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-do-enumerations-enum-in-javascript</link>
	<description>helping you with javascript since 2007</description>
	<lastBuildDate>Tue, 31 Jan 2012 11:22:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: picks for college football</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-do-enumerations-enum-in-javascript/comment-page-1/#comment-1401</link>
		<dc:creator>picks for college football</dc:creator>
		<pubDate>Thu, 13 Oct 2011 12:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=9#comment-1401</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

I am extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Anyway keep up the excellent quality writing, it is rare to see a great blog like this one nowadays.....</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>I am extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Anyway keep up the excellent quality writing, it is rare to see a great blog like this one nowadays&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: software reviews</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-do-enumerations-enum-in-javascript/comment-page-1/#comment-1361</link>
		<dc:creator>software reviews</dc:creator>
		<pubDate>Thu, 13 Oct 2011 00:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=9#comment-1361</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

I’ll immediately grab your rss feed as I can not find your e-mail subscription link or newsletter service. Do you have any? Kindly let me know in order that I could subscribe. Thanks....</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>I’ll immediately grab your rss feed as I can not find your e-mail subscription link or newsletter service. Do you have any? Kindly let me know in order that I could subscribe. Thanks&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dYcbbgx</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-do-enumerations-enum-in-javascript/comment-page-1/#comment-1336</link>
		<dc:creator>dYcbbgx</dc:creator>
		<pubDate>Wed, 12 Oct 2011 01:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=9#comment-1336</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have truly enjoyed surfing around your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon!...</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>Pretty nice post. I just stumbled upon your weblog and wanted to say that I have truly enjoyed surfing around your blog posts. After all I will be subscribing to your rss feed and I hope you write again soon!&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dYcxcgcvfgg</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-do-enumerations-enum-in-javascript/comment-page-1/#comment-1307</link>
		<dc:creator>dYcxcgcvfgg</dc:creator>
		<pubDate>Sun, 09 Oct 2011 01:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=9#comment-1307</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

Hi, I do believe this is an excellent blog. I stumbled upon it on Yahoo , i will come back once again. Money and freedom is the best way to change, may you be rich and help other people....</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>Hi, I do believe this is an excellent blog. I stumbled upon it on Yahoo , i will come back once again. Money and freedom is the best way to change, may you be rich and help other people&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dYcxcgcvf</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-do-enumerations-enum-in-javascript/comment-page-1/#comment-1288</link>
		<dc:creator>dYcxcgcvf</dc:creator>
		<pubDate>Sat, 08 Oct 2011 02:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=9#comment-1288</guid>
		<description>&lt;strong&gt;2011...&lt;/strong&gt;

Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. It extremely helps make reading your blog significantly easier....</description>
		<content:encoded><![CDATA[<p><strong>2011&#8230;</strong></p>
<p>Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. It extremely helps make reading your blog significantly easier&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://www.javascriptkata.com/2007/03/22/how-to-do-enumerations-enum-in-javascript/comment-page-1/#comment-753</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Wed, 20 May 2009 15:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://javascriptkata.timmyontime.com/?p=9#comment-753</guid>
		<description>A problem with using numbers is:

var colors = {red:0, blue:1, green:2};
var days = {sunday:0, monday:1, tuesday:2, wednesday:3, thursday:4, friday:5, saturday:6};

colors.red == days.sunday!

You can avoid mixing numbers with real values of the enum by using this:
var colors = {red:{}, blue:{}, green:{}};

This creates empty objects to use as enum values. They can only compare with themselves. They will never be equal to anything else, like value of another enum.</description>
		<content:encoded><![CDATA[<p>A problem with using numbers is:</p>
<p>var colors = {red:0, blue:1, green:2};<br />
var days = {sunday:0, monday:1, tuesday:2, wednesday:3, thursday:4, friday:5, saturday:6};</p>
<p>colors.red == days.sunday!</p>
<p>You can avoid mixing numbers with real values of the enum by using this:<br />
var colors = {red:{}, blue:{}, green:{}};</p>
<p>This creates empty objects to use as enum values. They can only compare with themselves. They will never be equal to anything else, like value of another enum.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

