<?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; Operators</title>
	<atom:link href="http://keithdonegan.com/learning-javascript/operators/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>The Delete Operator in JavaScript</title>
		<link>http://keithdonegan.com/the-delete-operator-in-javascript/</link>
		<comments>http://keithdonegan.com/the-delete-operator-in-javascript/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 18:04:38 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Learning Javascript]]></category>
		<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=1422</guid>
		<description><![CDATA[The delete operator can delete a property of an object, array element or an undeclared variable. var ob = { a:1, b:2 }; delete ob.b.]]></description>
			<content:encoded><![CDATA[<p>The delete operator can delete a property of an object, array element or an undeclared variable. </p>
<pre>var ob = { a:1, b:2 };
delete ob.b.</pre>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/the-delete-operator-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The new Operator in JavaScript</title>
		<link>http://keithdonegan.com/the-new-operator-in-javascript/</link>
		<comments>http://keithdonegan.com/the-new-operator-in-javascript/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 01:34:52 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=392</guid>
		<description><![CDATA[The new Operator creates a new object and invokes a constructor function to initialize it. i = new object;]]></description>
			<content:encoded><![CDATA[<p>The new Operator creates a new object and invokes a constructor function to initialize it.</p>
<pre>i = new object;</pre>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/the-new-operator-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Typeof Operator in JavaScript</title>
		<link>http://keithdonegan.com/the-typeof-operator-in-javascript/</link>
		<comments>http://keithdonegan.com/the-typeof-operator-in-javascript/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 01:14:07 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=388</guid>
		<description><![CDATA[The typeof Operator determines the datatype of the operand. var name = "Keith"; document.write(typeof(name));]]></description>
			<content:encoded><![CDATA[<p>The typeof Operator determines the datatype of the operand.</p>
<pre>var name = "Keith";

document.write(typeof(name));</pre>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/the-typeof-operator-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Conditional Operator in JavaScript</title>
		<link>http://keithdonegan.com/the-conditional-operator-in-javascript/</link>
		<comments>http://keithdonegan.com/the-conditional-operator-in-javascript/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 00:51:46 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=385</guid>
		<description><![CDATA[The conditional operator is the only JavaScript operator that takes three operands. The operator can have one of two values based on a condition. The syntax is: condition ? val1 : val2 If condition is true, the operator has the value of val1. Otherwise it has the value of val2. You can use the conditional [...]]]></description>
			<content:encoded><![CDATA[<p>The conditional operator is the only JavaScript operator that takes three operands. The operator can have one of two values based on a condition. The syntax is:</p>
<p>condition ? val1 : val2</p>
<p>If condition is true, the operator has the value of val1. Otherwise it has the value of val2. You can use the conditional operator anywhere you would use a standard operator.</p>
<p>For example,</p>
<p>status = (age &gt;= 18) ? &#8220;adult&#8221; : &#8220;minor&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/the-conditional-operator-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The instanceof Operator in JavaScript</title>
		<link>http://keithdonegan.com/the-instanceof-operator-in-javascript/</link>
		<comments>http://keithdonegan.com/the-instanceof-operator-in-javascript/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 00:24:06 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=380</guid>
		<description><![CDATA[The instanceof operator expects a left-side operand that is an object and a right-side operand that is the name of a class of objects. var names = new String("Keith"); names instanceof String; // returns true var names2 = "Aoife"; names2 instanceof String; // returns false (names2 is not a String object)]]></description>
			<content:encoded><![CDATA[<p>The instanceof operator expects a left-side operand that is an object and a right-side operand that is the name of a class of objects.</p>
<pre class="eval">var names = new String("Keith");
names instanceof String;
// returns true

var names2 = "Aoife";
names2 instanceof String;
// returns false (names2 is not a String object)</pre>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/the-instanceof-operator-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The In Operator in JavaScript</title>
		<link>http://keithdonegan.com/the-in-operator-in-javascript/</link>
		<comments>http://keithdonegan.com/the-in-operator-in-javascript/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 00:12:44 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=374</guid>
		<description><![CDATA[The In Operator expects a left-side that is or can be converted to a string. it expects a right-side operand that is an object or array. It evaluates to true if the left-side value is the name of a property of the right-side object. var names = new Array("Keith", "Aoife", "Sasha"); delete trees[2]; // Delete [...]]]></description>
			<content:encoded><![CDATA[<p>The In Operator expects a left-side that is or can be converted to a string. it expects a right-side operand that is an object or array. It evaluates to true if the left-side value is the name of a property of the right-side object.</p>
<pre>var names = new Array("Keith", "Aoife", "Sasha");

delete trees[2]; // Delete index number 3

3 in name; // returns false</pre>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/the-in-operator-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Inequality Operators</title>
		<link>http://keithdonegan.com/javascript-inequality-operators/</link>
		<comments>http://keithdonegan.com/javascript-inequality-operators/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 21:11:29 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=359</guid>
		<description><![CDATA[The != and !== operators test for the exact opposite of the == and === operators. The Inequality Operator (!=) The Inequality operator returns false if two values are equal to each other. The NonIdentity Operator (!==) The Nonidentity operator returns false if two values are idetical to each other.]]></description>
			<content:encoded><![CDATA[<p>The != and !== operators test for the exact opposite of the == and === operators.</p>
<p><strong>The Inequality Operator (!=)</strong></p>
<p>The Inequality operator returns false if two values are equal to each other.</p>
<p><strong>The NonIdentity Operator (!==)</strong></p>
<p>The Nonidentity operator returns false if two values are idetical to each other.</p>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/javascript-inequality-operators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Equality Operators</title>
		<link>http://keithdonegan.com/javascript-equality-operators/</link>
		<comments>http://keithdonegan.com/javascript-equality-operators/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 23:54:41 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=355</guid>
		<description><![CDATA[The Equality Operator (==) The equality operator (==) checks whether two operands are the same and returns true if they are the same and false if they are different. The Identity Operator (===) The identity operator checks whether two operands are &#8220;identical&#8221;. These rules determine whether two values are identical: They have to have the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Equality Operator (==)</strong></p>
<p>The equality operator (==) checks whether two operands are the same and returns true if they are the same and false if they are different.</p>
<p><strong>The Identity Operator (===)</strong></p>
<p>The identity operator checks whether two operands are &#8220;identical&#8221;.</p>
<p>These rules determine whether two values are identical:</p>
<ul>
<li>They have to have the same type.</li>
<li>If number values have the same value they are identical, unless one or both are NaN.</li>
<li>If string values have the same value they are identical, unless the strings differ in length or content.</li>
<li>If boolean values are either true or false, they are identical.</li>
<li>If both values refer to the same object, array or function they are identical.</li>
<li>If both values are null or undefined they are identical.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/javascript-equality-operators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arithmetic Operators in JavaScript</title>
		<link>http://keithdonegan.com/arithmetic-operators-in-javascript/</link>
		<comments>http://keithdonegan.com/arithmetic-operators-in-javascript/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 22:49:04 +0000</pubDate>
		<dc:creator>Keith</dc:creator>
				<category><![CDATA[Operators]]></category>

		<guid isPermaLink="false">http://www.keithdonegan.com/?p=302</guid>
		<description><![CDATA[Addition Operator (+) The addition operator adds numbers together and also joins strings together. document.write(2 + 2); Subtraction Operator (-) Subtracts two or more numbers . document.write(5 - 3); Multiplication Number (*) Multiplies two or more numbers. document.write(5 * 2); Division Operator (/) The Division Operator divides its first operand by its second. If an [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Addition Operator (+)<br />
</strong></p>
<p>The addition operator adds numbers together and also joins strings together. </p>
<pre>document.write(2 + 2);</pre>
<p><strong>Subtraction Operator (-)<br />
</strong></p>
<p>Subtracts two or more numbers .</p>
<pre>document.write(5 - 3);</pre>
<p><strong>Multiplication Number (*)<br />
</strong></p>
<p>Multiplies two or more numbers.</p>
<pre>document.write(5 * 2);</pre>
<p><strong>Division Operator (/)</strong></p>
<p>The Division Operator divides its first operand by its second. If  an outputted result could be a floating point number (4.5), JavaScript will return a floating point number and not an integer.</p>
<pre>document.write(9/2);</pre>
<p><strong>Modulo Operator (%)</strong></p>
<p>The Modulo operator returns the remainder when the first operand is divided by the second operand.</p>
<pre>document.write(9%2);</pre>
<p><strong>Unary Operator (-)</strong></p>
<p>When the subtraction operator is used before an operand, it converts a positive value to a negative value.</p>
<pre>var one = 1;</pre>
<pre>document.write(-one);</pre>
<p><strong>Unary Operator (+)</strong></p>
<p>When the addition operator is used before an operand, it converts a negative value to a positive value.</p>
<pre>var one = -1;</pre>
<pre>document.write(+one);</pre>
<p><strong>Increment Operator (++)</strong></p>
<p>The Increment Operator increments, adds 1 to a variable value. If (++) is used before the operand, it increments and evaluates the operand to the incremented value. If used after the operand, it increments the operand but evaluates to the incremented value of that operand.</p>
<pre>var ten = 10;</pre>
<pre>document.write(++ten);</pre>
<p><strong>Decrement Operator (&#8211;)</strong></p>
<p>The Decrement Operator decrements, subtracts 1 to a variable value. If (&#8211;) is used before the operand, it decrements and evaluates the operand to the decremented value. If used after the operand, it decrements the operand but evaluates to the decremented value of that operand.</p>
<pre>var ten = 10;</pre>
<pre>document.write(--ten);</pre>
]]></content:encoded>
			<wfw:commentRss>http://keithdonegan.com/arithmetic-operators-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
