<?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>Keith Donegan &#187; Variables</title>
	<atom:link href="http://keithdonegan.com/learning-javascript/variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://keithdonegan.com</link>
	<description>Just a blog about nothing</description>
	<lastBuildDate>Thu, 20 May 2010 00:42:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JavaScript Garbage Collection</title>
		<link>http://keithdonegan.com/javascript-garbage-collection/</link>
		<comments>http://keithdonegan.com/javascript-garbage-collection/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 22:49:57 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=272</guid>
		<description><![CDATA[Every time a JavaScript program creates a string, array or object, the JavaScript interpreter allocates memory to store one of the three. When memory is dynamically allocated like this, it must eventually be freed up. With Programming languages like C and C++, the programmer must manually destroy the objects when they are no longer needed. [...]]]></description>
			<content:encoded><![CDATA[<p>Every time a JavaScript program creates a string, array or object, the JavaScript interpreter allocates memory to store one of the three. When  memory is dynamically allocated like this, it must eventually be freed up.</p>
<p>With Programming languages like C and C++, the programmer must manually destroy the objects when they are no longer needed.</p>
<p>JavaScript is different, instead of manually freeing up memory by the programmer, It uses a technique called garbage Collection. The JavaScript interpreter can detect when an object will never be used again in the program and frees up the allocated memory used by that object.</p>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/javascript-garbage-collection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Primitive &amp; Reference Types in JavaScript</title>
		<link>http://keithdonegan.com/primitive-reference-types-in-javascript/</link>
		<comments>http://keithdonegan.com/primitive-reference-types-in-javascript/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 00:09:40 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=267</guid>
		<description><![CDATA[Variables contain values and these values can be any number of datatypes such as a string or boolean etc. these datatypes can be organised into two groups: Primtive &#38; Reference. Primitive Types: Numbers, Boolean values and the Null and undefined types A primitive type has a fixed size in memory. A number occupies eight bytes [...]]]></description>
			<content:encoded><![CDATA[<p>Variables contain values and these values can be any number of datatypes such as a string or boolean etc. these datatypes can be organised into two groups: Primtive &amp; Reference.</p>
<p><strong>Primitive Types</strong>: Numbers, Boolean values and the Null and undefined types</p>
<p>A primitive type has a fixed size in memory. A number occupies eight bytes of memory and a boolean value occupies one bit for example. The number type is the largest of the primitive types.</p>
<p><strong>Reference Types: </strong>Objects, arrays and functions.</p>
<p>A reference type can be of any size, so it cannot be stored in the eight bytes of memory asociated with each variable. Instead, the variable stores a reference to the value.</p>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/primitive-reference-types-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Variable Scope in JavaScript</title>
		<link>http://keithdonegan.com/variable-scope-in-javascript/</link>
		<comments>http://keithdonegan.com/variable-scope-in-javascript/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 23:30:48 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=259</guid>
		<description><![CDATA[The scope of a variable is the region of your program in which it is defined. For example, a global variable has global scope and can be accessed anywhere in your script. A variable defined in a function cannot be accessed outside the function it was created.]]></description>
			<content:encoded><![CDATA[<p>The scope of a variable is the region of your program in which it is defined. For example, a global variable has global scope and can be accessed anywhere in your script. A variable defined in a function cannot be accessed outside the function it was created.</p>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/variable-scope-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Declaring Variables in JavaScript</title>
		<link>http://keithdonegan.com/declaring-variables-in-javascript/</link>
		<comments>http://keithdonegan.com/declaring-variables-in-javascript/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 15:28:19 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=247</guid>
		<description><![CDATA[Before you start using variables in Javascript, you have to declare them first by adding the keyword var before the variable name. Example var name = "Keith Donegan"; You can also declare multiple with only one var keyword Example var name, num, customer;]]></description>
			<content:encoded><![CDATA[<p>Before you start using variables in Javascript, you have to declare them first by adding the keyword <strong>var</strong> before the variable name.</p>
<p><strong>Example</strong></p>
<pre>var name = "Keith Donegan";</pre>
<p>You can also declare multiple with only one var keyword</p>
<p><strong>Example</strong></p>
<pre>var name, num, customer;</pre>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/declaring-variables-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Variable Typing</title>
		<link>http://keithdonegan.com/javascript-variable-typing/</link>
		<comments>http://keithdonegan.com/javascript-variable-typing/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 02:10:10 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=243</guid>
		<description><![CDATA[JavaScript is an untyped language, this means that a variable in JavaScript can hold a value of any data-type such as a number, string or boolean etc after it has been declared. Example var = 7; var = true;]]></description>
			<content:encoded><![CDATA[<p>JavaScript is an untyped language, this means that a variable in JavaScript can hold a value of any data-type such as a number, string or boolean etc after it has been declared.</p>
<p><strong>Example</strong></p>
<pre>var = 7;
var = true;</pre>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/javascript-variable-typing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
