<?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: Understanding &#8220;Prototypes&#8221; in JavaScript</title>
	<atom:link href="http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/</link>
	<description>Random Geek-Related Thoughts</description>
	<lastBuildDate>Sat, 20 Apr 2013 07:23:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Chermetz</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-26069</link>
		<dc:creator>Daniel Chermetz</dc:creator>
		<pubDate>Sat, 20 Apr 2013 07:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-26069</guid>
		<description><![CDATA[Thank you so much for this tutorial Yehuda!

It really made sense and shed light on a part of JS that I knew superficially, but didn&#039;t really know how it all works.

-Daniel]]></description>
		<content:encoded><![CDATA[<p>Thank you so much for this tutorial Yehuda!</p>
<p>It really made sense and shed light on a part of JS that I knew superficially, but didn&#8217;t really know how it all works.</p>
<p>-Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Naseef</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-25934</link>
		<dc:creator>Raymond Naseef</dc:creator>
		<pubDate>Sun, 30 Dec 2012 04:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-25934</guid>
		<description><![CDATA[I think there is a mistake on the page, shown at the end of this message: 2 &#039;{&#039; followed by 3 &#039;}&#039;.  Shouldn&#039;t it be &#039;{{}}&#039;?

Happy New Year!
Ray

We can wrap this chunk of HTML in a SproutCore view, which will define the sources of each of the properties used in {{}}}.]]></description>
		<content:encoded><![CDATA[<p>I think there is a mistake on the page, shown at the end of this message: 2 &#8216;{&#8216; followed by 3 &#8216;}&#8217;.  Shouldn&#8217;t it be &#8216;{{}}&#8217;?</p>
<p>Happy New Year!<br />
Ray</p>
<p>We can wrap this chunk of HTML in a SproutCore view, which will define the sources of each of the properties used in {{}}}.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wycats</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-25452</link>
		<dc:creator>wycats</dc:creator>
		<pubDate>Mon, 10 Sep 2012 20:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-25452</guid>
		<description><![CDATA[Fixed!]]></description>
		<content:encoded><![CDATA[<p>Fixed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eoin Kelly</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-25448</link>
		<dc:creator>Eoin Kelly</dc:creator>
		<pubDate>Thu, 06 Sep 2012 10:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-25448</guid>
		<description><![CDATA[Helpful explanation - thanks for taking the time to write it. Noticed a minor typo:

var alex = { firstName: &quot;Alex&quot;, lastName: &quot;Russell&quot; };
person.toString() // &quot;[object Object]&quot;

should presumably be 

var alex = { firstName: &quot;Alex&quot;, lastName: &quot;Russell&quot; };
alex.toString() // &quot;[object Object]&quot;

Thanks
/Eoin/]]></description>
		<content:encoded><![CDATA[<p>Helpful explanation &#8211; thanks for taking the time to write it. Noticed a minor typo:</p>
<p>var alex = { firstName: &#8220;Alex&#8221;, lastName: &#8220;Russell&#8221; };<br />
person.toString() // &#8220;[object Object]&#8221;</p>
<p>should presumably be </p>
<p>var alex = { firstName: &#8220;Alex&#8221;, lastName: &#8220;Russell&#8221; };<br />
alex.toString() // &#8220;[object Object]&#8221;</p>
<p>Thanks<br />
/Eoin/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wil Moore III</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-25446</link>
		<dc:creator>Wil Moore III</dc:creator>
		<pubDate>Tue, 04 Sep 2012 19:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-25446</guid>
		<description><![CDATA[@Lucas Prim:

The `arguments` variable/reference is always available within a function. It is array-like (not actually an array), but you can cast it to an array using a generic function such as &quot;slice&quot;.

This line:
var args = Array.prototype.slice.call(arguments, 1);

Since `slice` works on arrays or array-like objects (object with a length property), this above works. The following would have worked as well (minor performance differences aside):

var args = [].slice.call(arguments, 1);]]></description>
		<content:encoded><![CDATA[<p>@Lucas Prim:</p>
<p>The `arguments` variable/reference is always available within a function. It is array-like (not actually an array), but you can cast it to an array using a generic function such as &#8220;slice&#8221;.</p>
<p>This line:<br />
var args = Array.prototype.slice.call(arguments, 1);</p>
<p>Since `slice` works on arrays or array-like objects (object with a length property), this above works. The following would have worked as well (minor performance differences aside):</p>
<p>var args = [].slice.call(arguments, 1);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yoda from Mars</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-25392</link>
		<dc:creator>Yoda from Mars</dc:creator>
		<pubDate>Thu, 19 Jul 2012 07:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-25392</guid>
		<description><![CDATA[I agree with Matt King there. &quot;While the newObject and createObject functions are useful, I think it only obscures the concept.&quot;]]></description>
		<content:encoded><![CDATA[<p>I agree with Matt King there. &#8220;While the newObject and createObject functions are useful, I think it only obscures the concept.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastien Paquet</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-25302</link>
		<dc:creator>Sebastien Paquet</dc:creator>
		<pubDate>Fri, 04 May 2012 14:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-25302</guid>
		<description><![CDATA[in &quot;Setting Properties&quot;, at the end of the first function, you&#039;re closing a parenthese that hasn&#039;t been opened,left over defineProperty on top. great article btw! Thanks.]]></description>
		<content:encoded><![CDATA[<p>in &#8220;Setting Properties&#8221;, at the end of the first function, you&#8217;re closing a parenthese that hasn&#8217;t been opened,left over defineProperty on top. great article btw! Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-25216</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Wed, 29 Feb 2012 17:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-25216</guid>
		<description><![CDATA[Another edit you could make if you have the time and inclination, in the second boxout of the Prototypes section:

// instead of using defineProperty and specifying writable,
// configurable, and enumerable, we can just assign the
// value directly and JavaScript will take care of the rest
person[&#039;fullName&#039;] = function() {
  return this.firstName + &#039; &#039; + this.lastName;
});

The final &#039;)&#039; isn&#039;t needed! Great article though ;-)]]></description>
		<content:encoded><![CDATA[<p>Another edit you could make if you have the time and inclination, in the second boxout of the Prototypes section:</p>
<p>// instead of using defineProperty and specifying writable,<br />
// configurable, and enumerable, we can just assign the<br />
// value directly and JavaScript will take care of the rest<br />
person['fullName'] = function() {<br />
  return this.firstName + &#8216; &#8216; + this.lastName;<br />
});</p>
<p>The final &#8216;)&#8217; isn&#8217;t needed! Great article though ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Torres</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-23514</link>
		<dc:creator>Ivan Torres</dc:creator>
		<pubDate>Fri, 07 Oct 2011 16:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-23514</guid>
		<description><![CDATA[This is a really good explanation (perhaps the best I&#039;ve seen so far)!

Thanks!]]></description>
		<content:encoded><![CDATA[<p>This is a really good explanation (perhaps the best I&#8217;ve seen so far)!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grahame Scott-Douglas</title>
		<link>http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/comment-page-1/#comment-23407</link>
		<dc:creator>Grahame Scott-Douglas</dc:creator>
		<pubDate>Tue, 13 Sep 2011 14:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://yehudakatz.com/?p=639#comment-23407</guid>
		<description><![CDATA[Excellent article.  Very useful for people wanting to move from just using JavaScript to jazz up a page to actually coding an application.

You really break it down in a simple and understandable way.  Much clearer than a lot of other renditions I&#039;ve seen.]]></description>
		<content:encoded><![CDATA[<p>Excellent article.  Very useful for people wanting to move from just using JavaScript to jazz up a page to actually coding an application.</p>
<p>You really break it down in a simple and understandable way.  Much clearer than a lot of other renditions I&#8217;ve seen.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
