<?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>MGRIMM.NET &#187; Javascript</title>
	<atom:link href="http://mgrimm.net/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://mgrimm.net</link>
	<description>It's back, baby.</description>
	<lastBuildDate>Fri, 11 Sep 2009 16:37:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript Linked List</title>
		<link>http://mgrimm.net/2009/05/07/javascript-linked-list/</link>
		<comments>http://mgrimm.net/2009/05/07/javascript-linked-list/#comments</comments>
		<pubDate>Fri, 08 May 2009 01:28:45 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://mgrimm.net/?p=9</guid>
		<description><![CDATA[This is a simple Javascript LinkedList class that I built for a work project. Once you see the structure of the print() function, you should be able to add other functions such as find() or delete() very easily.
// Class LinkedList, by Michael Grimm, http://mgrimm.net
function LinkedList() {
this._root = null;
}
LinkedList.prototype = {
// ADD()
add: function(node) {
var curr = [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple Javascript LinkedList class that I built for a work project. Once you see the structure of the print() function, you should be able to add other functions such as find() or delete() very easily.</p>
<p><code>// Class LinkedList, by Michael Grimm, http://mgrimm.net<br />
function LinkedList() {<br />
this._root = null;<br />
}<br />
LinkedList.prototype = {<br />
// ADD()<br />
add: function(node) {<br />
var curr = this._root;<br />
if (curr == null) {<br />
this._root = node;<br />
} else {<br />
while (curr.next != null) {<br />
curr = curr.next;<br />
}<br />
curr.next = node;<br />
}<br />
},<br />
// PRINT()<br />
print: function(currPage, currFolder) {<br />
var curr = this._root;<br />
while (curr != null) {<br />
// Put code to print here<br />
curr = curr.next;<br />
}<br />
}<br />
};</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mgrimm.net/2009/05/07/javascript-linked-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
