<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The World Of Gavin &#187; javascript</title>
	<atom:link href="http://www.gavinwillingham.com/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gavinwillingham.com</link>
	<description>My opinions on things I have opinions on</description>
	<lastBuildDate>Fri, 28 Jan 2011 17:08:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Javascript</title>
		<link>http://www.gavinwillingham.com/javascript.html</link>
		<comments>http://www.gavinwillingham.com/javascript.html#comments</comments>
		<pubDate>Sun, 28 Feb 2010 14:19:42 +0000</pubDate>
		<dc:creator>gavin</dc:creator>
				<category><![CDATA[Content]]></category>
		<category><![CDATA[foreach]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.gavinwillingham.com/?p=781</guid>
		<description><![CDATA[Foreach Javascript lets you have associative arrays (of sorts), e.g: var myArray = { a : 'val1', b : 'val2' }; If you want to loop over this array, you can use a foreach loop: for( x in myArray ) { alert(myArray[x]); } This code will pop up a message box for each entry in [...]]]></description>
			<content:encoded><![CDATA[<h2>Foreach</h2>
<p>Javascript lets you have associative arrays (of sorts), e.g:</p>
<pre>var myArray = {
    a : 'val1',
    b : 'val2'
};
</pre>
<p>If you want to loop over this array, you can use a foreach loop:</p>
<pre>for( x in myArray ) {
    alert(myArray[x]);
}
</pre>
<p>This code will pop up a message box for each entry in the array. Because the key is assigned to the variable <code>x</code>, you can use the key as well as the value.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gavinwillingham.com/javascript.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

