<?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: A Consideration of Variable and Function Scope in JavaScript</title>
	<atom:link href="http://www.impressivewebs.com/a-consideration-of-variable-and-function-scope-in-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.impressivewebs.com/a-consideration-of-variable-and-function-scope-in-javascript/</link>
	<description>Web Design Articles &#38; Tutorials. To make the web impressive.</description>
	<lastBuildDate>Thu, 18 Mar 2010 06:50:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: CSS Brigit &#124; A Consideration of Variable and Function Scope in JavaScript</title>
		<link>http://www.impressivewebs.com/a-consideration-of-variable-and-function-scope-in-javascript/comment-page-1/#comment-557</link>
		<dc:creator>CSS Brigit &#124; A Consideration of Variable and Function Scope in JavaScript</dc:creator>
		<pubDate>Fri, 10 Jul 2009 10:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.impressivewebs.com/?p=767#comment-557</guid>
		<description>&lt;strong&gt; A Consideration of Variable and Function Scope in JavaScript...&lt;/strong&gt;

	
			
						
							
				This article runs through the basics of scope to give beginning to intermediate JavaScript developers a better grasp of this very important concept.
			
			...</description>
		<content:encoded><![CDATA[<p><strong> A Consideration of Variable and Function Scope in JavaScript&#8230;</strong></p>
<p>				This article runs through the basics of scope to give beginning to intermediate JavaScript developers a better grasp of this very important concept.</p>
<p>			&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cb</title>
		<link>http://www.impressivewebs.com/a-consideration-of-variable-and-function-scope-in-javascript/comment-page-1/#comment-555</link>
		<dc:creator>cb</dc:creator>
		<pubDate>Thu, 09 Jul 2009 19:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.impressivewebs.com/?p=767#comment-555</guid>
		<description>I was just having a JS scope discussion recently and I think these were the 3 main points I used:

Functions have scope - a variable declared within a function is not accessible outside that function (vars in a function are &quot;private&quot;)

A variable defined within a function is accessible to its nested functions.

JavaScript is lexically scoped - functions run in the scope they are defined in, rather than the scope they are executed in.</description>
		<content:encoded><![CDATA[<p>I was just having a JS scope discussion recently and I think these were the 3 main points I used:</p>
<p>Functions have scope &#8211; a variable declared within a function is not accessible outside that function (vars in a function are &#8220;private&#8221;)</p>
<p>A variable defined within a function is accessible to its nested functions.</p>
<p>JavaScript is lexically scoped &#8211; functions run in the scope they are defined in, rather than the scope they are executed in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Impressive Webs</title>
		<link>http://www.impressivewebs.com/a-consideration-of-variable-and-function-scope-in-javascript/comment-page-1/#comment-554</link>
		<dc:creator>Impressive Webs</dc:creator>
		<pubDate>Thu, 09 Jul 2009 14:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.impressivewebs.com/?p=767#comment-554</guid>
		<description>@Jakub:

&quot;Evan Longoria&quot; is an American male baseball player. &quot;Eva Longoria&quot; (notice the N missing), is a female actress. They are two different people. I guess the subtle difference tends to look like an error to those not familiar with U.S. pop culture! :o)</description>
		<content:encoded><![CDATA[<p>@Jakub:</p>
<p>&#8220;Evan Longoria&#8221; is an American male baseball player. &#8220;Eva Longoria&#8221; (notice the N missing), is a female actress. They are two different people. I guess the subtle difference tends to look like an error to those not familiar with U.S. pop culture! :o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jakub</title>
		<link>http://www.impressivewebs.com/a-consideration-of-variable-and-function-scope-in-javascript/comment-page-1/#comment-553</link>
		<dc:creator>Jakub</dc:creator>
		<pubDate>Thu, 09 Jul 2009 12:12:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.impressivewebs.com/?p=767#comment-553</guid>
		<description>The examples should be more well thought.
# if (sport === &quot;baseball&quot;) {  
#         player = &quot;Evan Longoria&quot;;  
#     } else {  
#         player = &quot;Eva Longoria&quot;;  
#     } 

I know it&#039;s a demonstration code but it&#039;s still better if a demonstration code makes sense. Posting examples like if (true) then return true; else return true. Is just bad coding.</description>
		<content:encoded><![CDATA[<p>The examples should be more well thought.<br />
# if (sport === &#8220;baseball&#8221;) {<br />
#         player = &#8220;Evan Longoria&#8221;;<br />
#     } else {<br />
#         player = &#8220;Eva Longoria&#8221;;<br />
#     } </p>
<p>I know it&#8217;s a demonstration code but it&#8217;s still better if a demonstration code makes sense. Posting examples like if (true) then return true; else return true. Is just bad coding.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
