<?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>Classifieds Scripts, Web Scripts,  Ajax Scripts, PHP Scripts, ASP Scripts &#187; JavaScript</title>
	<atom:link href="http://www.scriptclassifieds.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptclassifieds.com</link>
	<description>AJAX, PHP Scripts, ASP Scripts, Ad Management, Bookmark Management, Database Tools, Chat Scripts, HTML Editors, Classified Ads Scripts, Classifieds Script</description>
	<lastBuildDate>Sat, 28 Jan 2012 09:35:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JavaScript RegExp Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-regexp-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-regexp-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:35:03 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[highly object oriented]]></category>
		<category><![CDATA[RegExp]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1151</guid>
		<description><![CDATA[RegExp, is short for regular expression. Complete RegExp Object Reference For a complete reference of all the properties and methods that can be used with the RegExp object, go to our complete RegExp object reference. The reference contains a brief description and examples of use for each property and method! What is RegExp? A regular expression [...]]]></description>
			<content:encoded><![CDATA[<p>RegExp, is short for regular expression.</p>
<hr />
<h2>Complete RegExp Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the RegExp object, go to our complete RegExp object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>What is RegExp?</h2>
<p>A regular expression is an object that describes a pattern of characters.</p>
<p>When you search in a text, you can use a pattern to describe what you are searching for.</p>
<p>A simple pattern can be one single character.</p>
<p>A more complicated pattern can consist of more characters, and can be used for parsing, format checking, substitution and more.</p>
<p>Regular expressions are used to perform powerful pattern-matching and &#8220;search-and-replace&#8221; functions on text.</p>
<h2>Syntax</h2>
<div>
<div>var patt=new RegExp(pattern,modifiers);</p>
<p>or more simply:</p>
<p>var patt=/pattern/modifiers;</p></div>
</div>
<ul>
<li>pattern specifies the pattern of an expression</li>
<li>modifiers specify if a search should be global, case-sensitive, etc.</li>
</ul>
<hr />
<h2>RegExp Modifiers</h2>
<p>Modifiers are used to perform case-insensitive and global searches.</p>
<p>The i modifier is used to perform case-insensitive matching.</p>
<p>The g modifier is used to perform a global match (find all matches rather than stopping after the first match).</p>
<div>
<h2>Example 1</h2>
<p>Do a case-insensitive search for &#8220;w3schools&#8221; in a string:</p>
<div>var str=&#8221;Visit W3Schools&#8221;;<br />
var patt1=/w3schools/i;</div>
<p>The marked text below shows where the expression gets a match:</p>
<div>Visit W3Schools</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<div>
<h2>Example 2</h2>
<p>Do a global search for &#8220;is&#8221;:</p>
<div>var str=&#8221;Is this all there is?&#8221;;<br />
var patt1=/is/g;</div>
<p>The marked text below shows where the expression gets a match:</p>
<div>Is this all there is?</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<div>
<h2>Example 3</h2>
<p>Do a global, case-insensitive search for &#8220;is&#8221;:</p>
<div>var str=&#8221;Is this all there is?&#8221;;<br />
var patt1=/is/gi;</div>
<p>The marked text below shows where the expression gets a match:</p>
<div>Is this all there is?</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<hr />
<h2>test()</h2>
<p>The test() method searches a string for a specified value, and returns true or false, depending on the result.</p>
<p>The following example searches a string for the character &#8220;e&#8221;:</p>
<div>
<h2>Example</h2>
<div>var patt1=new RegExp(&#8220;e&#8221;);<br />
document.write(patt1.test(&#8220;The best things in life are free&#8221;));</div>
<p>Since there is an &#8220;e&#8221; in the string, the output of the code above will be:</p>
<div>true</div>
<p>Try it yourself »</p></div>
<p>&nbsp;</p>
<hr />
<h2>exec()</h2>
<p>The exec() method searches a string for a specified value, and returns the text of the found value. If no match is found, it returns <em>null.</em></p>
<p>The following example searches a string for the character &#8220;e&#8221;:</p>
<div>
<h2>Example 1</h2>
<div>var patt1=new RegExp(&#8220;e&#8221;);<br />
document.write(patt1.exec(&#8220;The best things in life are free&#8221;));</div>
<p>Since there is an &#8220;e&#8221; in the string, the output of the code above will be:</p>
<div>e</div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;bodytext=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;notes=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;t=JavaScript%20RegExp%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;annotation=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20RegExp%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;headline=JavaScript%20RegExp%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;bm_description=JavaScript%20RegExp%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;t=JavaScript%20RegExp%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20RegExp%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;h=JavaScript%20RegExp%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20RegExp%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;story_title=JavaScript%20RegExp%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;title=JavaScript%20RegExp%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20RegExp%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-regexp-object%2F&amp;submitHeadline=JavaScript%20RegExp%20Object%20%20&amp;submitSummary=RegExp%2C%20is%20short%20for%20regular%20expression.%0D%0A%0D%0A%0D%0A%0D%0AComplete%20RegExp%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20RegExp%20object%2C%20go%20to%20our%C2%A0complete%20RegExp%20object%20reference.%0D%0A%0D%0AThe%20reference%20contai&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-regexp-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Math Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-math-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-math-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:34:38 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Object]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1150</guid>
		<description><![CDATA[Complete Math Object Reference For a complete reference of all the properties and methods that can be used with the Math object, go to our complete Math object reference. The reference contains a brief description and examples of use for each property and method! Math Object The Math object allows you to perform mathematical tasks. The [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete Math Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the Math object, go to our complete Math object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>Math Object</h2>
<p>The Math object allows you to perform mathematical tasks.</p>
<p>The Math object includes several mathematical constants and methods.</p>
<p><strong>Syntax for using properties/methods of Math:</strong></p>
<div>
<div>var x=Math.PI;<br />
var y=Math.sqrt(16);</div>
</div>
<p><strong>Note:</strong> Math is not a constructor. All properties and methods of Math can be called by using Math as an object without creating it.</p>
<hr />
<h2>Mathematical Constants</h2>
<p>JavaScript provides eight mathematical constants that can be accessed from the Math object. These are: E, PI, square root of 2, square root of 1/2, natural log of 2, natural log of 10, base-2 log of E, and base-10 log of E.</p>
<p>You may reference these constants from your JavaScript like this:</p>
<div>
<div>Math.E<br />
Math.PI<br />
Math.SQRT2<br />
Math.SQRT1_2<br />
Math.LN2<br />
Math.LN10<br />
Math.LOG2E<br />
Math.LOG10E</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Mathematical Methods</h2>
<p>In addition to the mathematical constants that can be accessed from the Math object there are also several methods available.</p>
<p>The following example uses the round() method of the Math object to round a number to the nearest integer:</p>
<div>
<div>document.write(Math.round(4.7));</div>
</div>
<p>The code above will result in the following output:</p>
<div>
<div>5</div>
</div>
<p>The following example uses the random() method of the Math object to return a random number between 0 and 1:</p>
<div>
<div>document.write(Math.random());</div>
</div>
<p>The code above can result in the following output:</p>
<div>
<div>0.14280927344225347</div>
</div>
<p>The following example uses the floor() and random() methods of the Math object to return a random number between 0 and 10:</p>
<div>
<div>document.write(Math.floor(Math.random()*11));</div>
</div>
<p>The code above can result in the following output:</p>
<div>
<div>8</div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&amp;bodytext=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&amp;notes=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;t=JavaScript%20Math%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&amp;annotation=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Math%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;headline=JavaScript%20Math%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;bm_description=JavaScript%20Math%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;t=JavaScript%20Math%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Math%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;h=JavaScript%20Math%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Math%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;story_title=JavaScript%20Math%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;title=JavaScript%20Math%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Math%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-math-object%2F&amp;submitHeadline=JavaScript%20Math%20Object%20%20&amp;submitSummary=Complete%20Math%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Math%20object%2C%20go%20to%20our%C2%A0complete%20Math%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-math-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Boolean Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-boolean-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-boolean-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:34:18 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Boolean]]></category>
		<category><![CDATA[Object]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1149</guid>
		<description><![CDATA[Complete Boolean Object Reference For a complete reference of all the properties and methods that can be used with the Boolean object, go to our complete Boolean object reference. The reference contains a brief description and examples of use for each property and method! Create a Boolean Object The Boolean object represents two values: &#8220;true&#8221; or [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete Boolean Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the Boolean object, go to our complete Boolean object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>Create a Boolean Object</h2>
<p>The Boolean object represents two values: &#8220;true&#8221; or &#8220;false&#8221;.</p>
<p>The following code creates a Boolean object called myBoolean:</p>
<div>
<div>var myBoolean=new Boolean();</div>
</div>
<p>If the Boolean object has no initial value, or if the passed value is one of the following:</p>
<ul>
<li>0</li>
<li>-0</li>
<li>null</li>
<li>&#8220;&#8221;</li>
<li>false</li>
<li>undefined</li>
<li>NaN</li>
</ul>
<p>the object is set to false. For any other value it is set to true (even with the string &#8220;false&#8221;)!</p>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&amp;bodytext=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&amp;notes=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;t=JavaScript%20Boolean%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&amp;annotation=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Boolean%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;headline=JavaScript%20Boolean%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;bm_description=JavaScript%20Boolean%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;t=JavaScript%20Boolean%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Boolean%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;h=JavaScript%20Boolean%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Boolean%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;story_title=JavaScript%20Boolean%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;title=JavaScript%20Boolean%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Boolean%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-boolean-object%2F&amp;submitHeadline=JavaScript%20Boolean%20Object%20%20&amp;submitSummary=Complete%20Boolean%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Boolean%20object%2C%20go%20to%20our%C2%A0complete%20Boolean%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20fo&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-boolean-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Array Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-array-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-array-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:33:52 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Array Object]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1148</guid>
		<description><![CDATA[Complete Array Object Reference For a complete reference of all the properties and methods that can be used with the Array object, go to our complete Array object reference. The reference contains a brief description and examples of use for each property and method! What is an Array? An array is a special variable, which can [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete Array Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the Array object, go to our complete Array object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>What is an Array?</h2>
<p>An array is a special variable, which can hold more than one value, at a time.</p>
<p>If you have a list of items (a list of car names, for example), storing the cars in single variables could look like this:</p>
<div>
<div>var car1=&#8221;Saab&#8221;;<br />
var car2=&#8221;Volvo&#8221;;<br />
var car3=&#8221;BMW&#8221;;</div>
</div>
<p>However, what if you want to loop through the cars and find a specific one? And what if you had not 3 cars, but 300?</p>
<p>The best solution here is to use an array!</p>
<p>An array can hold all your variable values under a single name. And you can access the values by referring to the array name.</p>
<p>Each element in the array has its own ID so that it can be easily accessed.</p>
<hr />
<h2>Create an Array</h2>
<p>An array can be defined in three ways.</p>
<p>The following code creates an Array object called myCars:</p>
<p>1:</p>
<div>
<div>var myCars=new Array(); // regular array (add an optional integer<br />
myCars[0]=&#8221;Saab&#8221;;       // argument to control array&#8217;s size)<br />
myCars[1]=&#8221;Volvo&#8221;;<br />
myCars[2]=&#8221;BMW&#8221;;</div>
</div>
<p>2:</p>
<div>
<div>var myCars=new Array(&#8220;Saab&#8221;,&#8221;Volvo&#8221;,&#8221;BMW&#8221;); // condensed array</div>
</div>
<p>3:</p>
<div>
<div>var myCars=["Saab","Volvo","BMW"]; // literal array</div>
</div>
<p><strong>Note:</strong> If you specify numbers or true/false values inside the array then the variable type will be Number or Boolean, instead of String.</p>
<hr />
<h2>Access an Array</h2>
<p>You can refer to a particular element in an array by referring to the name of the array and the index number. The index number starts at 0.</p>
<p>The following code line:</p>
<div>
<div>document.write(myCars[0]);</div>
</div>
<p>will result in the following output:</p>
<div>
<div>Saab</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Modify Values in an Array</h2>
<p>To modify a value in an existing array, just add a new value to the array with a specified index number:</p>
<div>
<div>myCars[0]=&#8221;Opel&#8221;;</div>
</div>
<p>Now, the following code line:</p>
<div>
<div>document.write(myCars[0]);</div>
</div>
<p>will result in the following output:</p>
<div>
<div>Opel</div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&amp;bodytext=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&amp;notes=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;t=JavaScript%20Array%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&amp;annotation=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Array%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;headline=JavaScript%20Array%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;bm_description=JavaScript%20Array%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;t=JavaScript%20Array%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Array%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;h=JavaScript%20Array%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Array%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;story_title=JavaScript%20Array%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;title=JavaScript%20Array%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Array%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-array-object%2F&amp;submitHeadline=JavaScript%20Array%20Object%20%20&amp;submitSummary=Complete%20Array%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Array%20object%2C%20go%20to%20our%C2%A0complete%20Array%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-array-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Date Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-date-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-date-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:33:20 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Date Object]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1147</guid>
		<description><![CDATA[Complete Date Object Reference For a complete reference of all the properties and methods that can be used with the Date object, go to our complete Date object reference. The reference contains a brief description and examples of use for each property and method! Create a Date Object The Date object is used to work with [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete Date Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the Date object, go to our complete Date object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>Create a Date Object</h2>
<p>The Date object is used to work with dates and times.</p>
<p>Date objects are created with the Date() constructor.</p>
<p>There are four ways of instantiating a date:</p>
<div>
<div>new Date() // current date and time<br />
new Date(milliseconds) //milliseconds since 1970/01/01<br />
new Date(dateString)<br />
new Date(year, month, day, hours, minutes, seconds, milliseconds)</div>
</div>
<p>Most parameters above are optional. Not specifying, causes 0 to be passed in.</p>
<p>Once a Date object is created, a number of methods allow you to operate on it. Most methods allow you to get and set the year, month, day, hour, minute, second, and milliseconds of the object, using either local time or UTC (universal, or GMT) time.</p>
<p>All dates are calculated in milliseconds from 01 January, 1970 00:00:00 Universal Time (UTC) with a day containing 86,400,000 milliseconds.</p>
<p>Some examples of instantiating a date:</p>
<div>
<div>var today = new Date()<br />
var d1 = new Date(&#8220;October 13, 1975 11:13:00&#8243;)<br />
var d2 = new Date(79,5,24)<br />
var d3 = new Date(79,5,24,11,33,0)</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Set Dates</h2>
<p>We can easily manipulate the date by using the methods available for the Date object.</p>
<p>In the example below we set a Date object to a specific date (14th January 2010):</p>
<div>
<div>var myDate=new Date();<br />
myDate.setFullYear(2010,0,14);</div>
</div>
<p>And in the following example we set a Date object to be 5 days into the future:</p>
<div>
<div>var myDate=new Date();<br />
myDate.setDate(myDate.getDate()+5);</div>
</div>
<p><strong>Note:</strong> If adding five days to a date shifts the month or year, the changes are handled automatically by the Date object itself!</p>
<hr />
<h2>Compare Two Dates</h2>
<p>The Date object is also used to compare two dates.</p>
<p>The following example compares today&#8217;s date with the 14th January 2100:</p>
<div>
<div>var x=new Date();<br />
x.setFullYear(2100,0,14);<br />
var today = new Date();</p>
<p>if (x&gt;today)<br />
{<br />
alert(&#8220;Today is before 14th January 2100&#8243;);<br />
}<br />
else<br />
{<br />
alert(&#8220;Today is after 14th January 2100&#8243;);<br />
}</p></div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;bodytext=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;notes=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;t=JavaScript%20Date%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;annotation=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Date%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;headline=JavaScript%20Date%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;bm_description=JavaScript%20Date%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;t=JavaScript%20Date%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Date%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;h=JavaScript%20Date%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Date%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;story_title=JavaScript%20Date%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;title=JavaScript%20Date%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Date%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-date-object%2F&amp;submitHeadline=JavaScript%20Date%20Object%20%20&amp;submitSummary=Complete%20Date%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20Date%20object%2C%20go%20to%20our%C2%A0complete%20Date%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20each%20pr&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-date-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript String Object</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-string-object/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-string-object/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:32:49 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Object]]></category>
		<category><![CDATA[String]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1146</guid>
		<description><![CDATA[Complete String Object Reference For a complete reference of all the properties and methods that can be used with the String object, go to our complete String object reference. The reference contains a brief description and examples of use for each property and method! String object The String object is used to manipulate a stored piece [...]]]></description>
			<content:encoded><![CDATA[<h2>Complete String Object Reference</h2>
<p>For a complete reference of all the properties and methods that can be used with the String object, go to our complete String object reference.</p>
<p>The reference contains a brief description and examples of use for each property and method!</p>
<hr />
<h2>String object</h2>
<p>The String object is used to manipulate a stored piece of text.</p>
<p><strong>Examples of use:</strong></p>
<p>The following example uses the length property of the String object to find the length of a string:</p>
<div>
<div>var txt=&#8221;Hello world!&#8221;;<br />
document.write(txt.length);</div>
</div>
<p>The code above will result in the following output:</p>
<div>
<div>12</div>
</div>
<p>The following example uses the toUpperCase() method of the String object to convert a string to uppercase letters:</p>
<div>
<div>var txt=&#8221;Hello world!&#8221;;<br />
document.write(txt.toUpperCase());</div>
</div>
<p>The code above will result in the following output:</p>
<div>
<div>HELLO WORLD!</div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;bodytext=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;notes=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;t=JavaScript%20String%20Object%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;annotation=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20String%20Object%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;headline=JavaScript%20String%20Object%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;bm_description=JavaScript%20String%20Object%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;t=JavaScript%20String%20Object%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20String%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;h=JavaScript%20String%20Object%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20String%20Object%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;story_title=JavaScript%20String%20Object%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;title=JavaScript%20String%20Object%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20String%20Object%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-string-object%2F&amp;submitHeadline=JavaScript%20String%20Object%20%20&amp;submitSummary=Complete%20String%20Object%20Reference%0D%0AFor%20a%20complete%20reference%20of%20all%20the%20properties%20and%20methods%20that%20can%20be%20used%20with%20the%20String%20object%2C%20go%20to%20our%C2%A0complete%20String%20object%20reference.%0D%0A%0D%0AThe%20reference%20contains%20a%20brief%20description%20and%20examples%20of%20use%20for%20e&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-string-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Objects Introduction</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-objects-introduction/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-objects-introduction/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:32:23 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Objects]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1145</guid>
		<description><![CDATA[JavaScript is an Object Based Programming language. An Object Based Programming language allows you to define your own objects and make your own variable types. Object Based Programming JavaScript is an Object Based Programming language, and allows you to define your own objects and make your own variable types. However, creating your own objects will [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScript is an Object Based Programming language.</p>
<p>An Object Based Programming language allows you to define your own objects and make your own variable types.</p>
<hr />
<h2>Object Based Programming</h2>
<p>JavaScript is an Object Based Programming language, and allows you to define your own objects and make your own variable types.</p>
<p>However, creating your own objects will be explained later, in the Advanced JavaScript section. We will start by looking at the built-in JavaScript objects, and how they are used. The next pages will explain each built-in JavaScript object in detail.</p>
<p>Note that an object is just a special kind of data. An object has properties and methods.</p>
<hr />
<h2>Properties</h2>
<p>Properties are the values associated with an object.</p>
<p>In the following example we are using the length property of the String object to return the number of characters in a string:</p>
<div>
<div>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var txt=&#8221;Hello World!&#8221;;<br />
document.write(txt.length);<br />
&lt;/script&gt;</div>
</div>
<p>The output of the code above will be:</p>
<div>
<div>12</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Methods</h2>
<p>Methods are the actions that can be performed on objects.</p>
<p>In the following example we are using the toUpperCase() method of the String object to display a text in uppercase letters:</p>
<div>
<div>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
var str=&#8221;Hello world!&#8221;;<br />
document.write(str.toUpperCase());<br />
&lt;/script&gt;</div>
</div>
<p>The output of the code above will be:</p>
<div>
<div>HELLO WORLD!</div>
</div>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;bodytext=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;notes=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;t=JavaScript%20Objects%20Introduction%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;annotation=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Objects%20Introduction%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;headline=JavaScript%20Objects%20Introduction%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;bm_description=JavaScript%20Objects%20Introduction%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;t=JavaScript%20Objects%20Introduction%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Objects%20Introduction%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;h=JavaScript%20Objects%20Introduction%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Objects%20Introduction%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;story_title=JavaScript%20Objects%20Introduction%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;title=JavaScript%20Objects%20Introduction%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Objects%20Introduction%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-objects-introduction%2F&amp;submitHeadline=JavaScript%20Objects%20Introduction%20%20&amp;submitSummary=JavaScript%20is%20an%20Object%20Based%20Programming%20language.%0D%0A%0D%0AAn%20Object%20Based%20Programming%20language%20allows%20you%20to%20define%20your%20own%20objects%20and%20make%20your%20own%20variable%20types.%0D%0A%0D%0A%0D%0A%0D%0AObject%20Based%20Programming%0D%0AJavaScript%20is%20an%20Object%20Based%20Programming%20language%2C%20a&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-objects-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Create Your Own Objects</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects-2/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects-2/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 09:31:54 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Objects]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1152</guid>
		<description><![CDATA[JavaScript Objects Earlier in this tutorial we have seen that JavaScript has several built-in objects, like String, Date, Array, and more. In addition to these built-in objects, you can also create your own. An object is just a special kind of data, with a collection of properties and methods. Let&#8217;s illustrate with an example: A [...]]]></description>
			<content:encoded><![CDATA[<h2>JavaScript Objects</h2>
<p>Earlier in this tutorial we have seen that JavaScript has several built-in objects, like String, Date, Array, and more. In addition to these built-in objects, you can also create your own.</p>
<p>An object is just a special kind of data, with a collection of properties and methods.</p>
<p>Let&#8217;s illustrate with an example: A person is an object. Properties are the values associated with the object. The persons&#8217; properties include name, height, weight, age, skin tone, eye color, etc. All persons have these properties, but the values of those properties will differ from person to person. Objects also have methods. Methods are the actions that can be performed on objects. The persons&#8217; methods could be eat(), sleep(), work(), play(), etc.</p>
<h3>Properties</h3>
<p>The syntax for accessing a property of an object is:</p>
<div>
<div>objName.propName</div>
</div>
<p>You can add properties to an object by simply giving it a value. Assume that the personObj already exists &#8211; you can give it properties named firstname, lastname, age, and eyecolor as follows:</p>
<div>
<div>personObj.firstname=&#8221;John&#8221;;<br />
personObj.lastname=&#8221;Doe&#8221;;<br />
personObj.age=30;<br />
personObj.eyecolor=&#8221;blue&#8221;;</p>
<p>document.write(personObj.firstname);</p></div>
</div>
<p>The code above will generate the following output:</p>
<div>
<div>John</div>
</div>
<h3>Methods</h3>
<p>An object can also contain methods.</p>
<p>You can call a method with the following syntax:</p>
<div>
<div>objName.methodName()</div>
</div>
<p><strong>Note:</strong> Parameters required for the method can be passed between the parentheses.</p>
<p>To call a method called sleep() for the personObj:</p>
<div>
<div>personObj.sleep();</div>
</div>
<p>&nbsp;</p>
<hr />
<h2>Creating Your Own Objects</h2>
<p>There are different ways to create a new object:</p>
<p><strong>1. Create a direct instance of an object</strong></p>
<p>The following code creates a new instance of an object, and adds four properties to it:</p>
<div>
<div>personObj=new Object();<br />
personObj.firstname=&#8221;John&#8221;;<br />
personObj.lastname=&#8221;Doe&#8221;;<br />
personObj.age=50;<br />
personObj.eyecolor=&#8221;blue&#8221;;</div>
</div>
<p>alternative syntax (using object literals):</p>
<div>
<div>personObj={firstname:&#8221;John&#8221;,lastname:&#8221;Doe&#8221;,age:50,eyecolor:&#8221;blue&#8221;};</div>
</div>
<p>Adding a method to the personObj is also simple. The following code adds a method called eat() to the personObj:</p>
<div>
<div>personObj.eat=eat;</div>
</div>
<p><strong>2. Create an object constructor</strong></p>
<p>Create a function that construct objects:</p>
<div>
<div>function person(firstname,lastname,age,eyecolor)<br />
{<br />
this.firstname=firstname;<br />
this.lastname=lastname;<br />
this.age=age;<br />
this.eyecolor=eyecolor;<br />
}</div>
</div>
<p>Inside the function you need to assign things to this.propertyName. The reason for all the &#8220;this&#8221; stuff is that you&#8217;re going to have more than one person at a time (which person you&#8217;re dealing with must be clear). That&#8217;s what &#8220;this&#8221; is: the instance of the object at hand.</p>
<p>Once you have the object constructor, you can create new instances of the object, like this:</p>
<div>
<div>var myFather=new person(&#8220;John&#8221;,&#8221;Doe&#8221;,50,&#8221;blue&#8221;);<br />
var myMother=new person(&#8220;Sally&#8221;,&#8221;Rally&#8221;,48,&#8221;green&#8221;);</div>
</div>
<p>You can also add some methods to the person object. This is also done inside the function:</p>
<div>
<div>function person(firstname,lastname,age,eyecolor)<br />
{<br />
this.firstname=firstname;<br />
this.lastname=lastname;<br />
this.age=age;<br />
this.eyecolor=eyecolor;</p>
<p>this.newlastname=newlastname;<br />
}</p></div>
</div>
<p>Note that methods are just functions attached to objects. Then we will have to write the newlastname() function:</p>
<div>
<div>function newlastname(new_lastname)<br />
{<br />
this.lastname=new_lastname;<br />
}</div>
</div>
<p>The newlastname() function defines the person&#8217;s new last name and assigns that to the person. JavaScript knows which person you&#8217;re talking about by using &#8220;this.&#8221;. So, now you can write: myMother.newlastname(&#8220;Doe&#8221;).</p>
<p>source form: <a href="http://www.w3schools.com/">w3schools</a></p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;bodytext=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;notes=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;t=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;annotation=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;headline=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;bm_description=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;t=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;h=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;story_title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Create%20Your%20Own%20Objects%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects-2%2F&amp;submitHeadline=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;submitSummary=JavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20da&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Create Your Own Objects</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 13:28:20 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1111</guid>
		<description><![CDATA[JavaScript Objects Earlier in this tutorial we have seen that JavaScript has several built-in objects, like String, Date, Array, and more. In addition to these built-in objects, you can also create your own. An object is just a special kind of data, with a collection of properties and methods. Let&#8217;s illustrate with an example: A [...]]]></description>
			<content:encoded><![CDATA[<div>
<h2>JavaScript Objects</h2>
<p>Earlier in this tutorial we have seen that JavaScript has several built-in objects, like String, Date, Array, and more. In addition to these built-in objects, you can also create your own.</p>
<p>An object is just a special kind of data, with a collection of properties and methods.</p>
<p>Let&#8217;s illustrate with an example: A person is an object. Properties are the values associated with the object. The persons&#8217; properties include name, height, weight, age, skin tone, eye color, etc. All persons have these properties, but the values of those properties will differ from person to person. Objects also have methods. Methods are the actions that can be performed on objects. The persons&#8217; methods could be eat(), sleep(), work(), play(), etc.</p>
<h3>Properties</h3>
<p>The syntax for accessing a property of an object is:</p>
<div>
<div>objName.propName</div>
</div>
<p>You can add properties to an object by simply giving it a value. Assume that the personObj already exists &#8211; you can give it properties named firstname, lastname, age, and eyecolor as follows:</p>
<div>
<div>personObj.firstname=&#8221;John&#8221;;<br />
personObj.lastname=&#8221;Doe&#8221;;<br />
personObj.age=30;<br />
personObj.eyecolor=&#8221;blue&#8221;;</p>
<p>document.write(personObj.firstname);</p></div>
</div>
<p>The code above will generate the following output:</p>
<div>
<div>John</div>
</div>
<h3>Methods</h3>
<p>An object can also contain methods.</p>
<p>You can call a method with the following syntax:</p>
<div>
<div>objName.methodName()</div>
</div>
<p><strong>Note:</strong> Parameters required for the method can be passed between the parentheses.</p>
<p>To call a method called sleep() for the personObj:</p>
<div>
<div>personObj.sleep();</div>
</div>
<hr />
<h2>Creating Your Own Objects</h2>
<p>There are different ways to create a new object:</p>
<p><strong>1. Create a direct instance of an object</strong></p>
<p>The following code creates an new instance of an object, and adds four properties to it:</p>
<div>
<div>personObj=new Object();<br />
personObj.firstname=&#8221;John&#8221;;<br />
personObj.lastname=&#8221;Doe&#8221;;<br />
personObj.age=50;<br />
personObj.eyecolor=&#8221;blue&#8221;;</div>
</div>
<p>alternative syntax (using object literals):</p>
<div>
<div>personObj={firstname:&#8221;John&#8221;,lastname:&#8221;Doe&#8221;,age:50,eyecolor:&#8221;blue&#8221;};</div>
</div>
<p>Adding a method to the personObj is also simple. The following code adds a method called eat() to the personObj:</p>
<div>
<div>personObj.eat=eat;</div>
</div>
<p><strong>2. Create an object constructor</strong></p>
<p>Create a function that construct objects:</p>
<div>
<div>function person(firstname,lastname,age,eyecolor)<br />
{<br />
this.firstname=firstname;<br />
this.lastname=lastname;<br />
this.age=age;<br />
this.eyecolor=eyecolor;<br />
}</div>
</div>
<p>Inside the function you need to assign things to this.propertyName. The reason for all the &#8220;this&#8221; stuff is that you&#8217;re going to have more than one person at a time (which person you&#8217;re dealing with must be clear). That&#8217;s what &#8220;this&#8221; is: the instance of the object at hand.</p>
<p>Once you have the object constructor, you can create new instances of the object, like this:</p>
<div>
<div>var myFather=new person(&#8220;John&#8221;,&#8221;Doe&#8221;,50,&#8221;blue&#8221;);<br />
var myMother=new person(&#8220;Sally&#8221;,&#8221;Rally&#8221;,48,&#8221;green&#8221;);</div>
</div>
<p>You can also add some methods to the person object. This is also done inside the function:</p>
<div>
<div>function person(firstname,lastname,age,eyecolor)<br />
{<br />
this.firstname=firstname;<br />
this.lastname=lastname;<br />
this.age=age;<br />
this.eyecolor=eyecolor;</p>
<p>this.newlastname=newlastname;<br />
}</p></div>
</div>
<p>Note that methods are just functions attached to objects. Then we will have to write the newlastname() function:</p>
<div>
<div>function newlastname(new_lastname)<br />
{<br />
this.lastname=new_lastname;<br />
}</div>
</div>
<p>The newlastname() function defines the person&#8217;s new last name and assigns that to the person. JavaScript knows which person you&#8217;re talking about by using &#8220;this.&#8221;. So, now you can write: myMother.newlastname(&#8220;Doe&#8221;).</p>
<p>&nbsp;</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>
</div>
<p>&nbsp;</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;bodytext=%0D%0AJavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;notes=%0D%0AJavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;t=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;annotation=%0D%0AJavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;headline=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=%0D%0AJavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;bm_description=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;t=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;h=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;story_title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;title=JavaScript%20Create%20Your%20Own%20Objects%20%20" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Create%20Your%20Own%20Objects%20%20%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-create-your-own-objects%2F&amp;submitHeadline=JavaScript%20Create%20Your%20Own%20Objects%20%20&amp;submitSummary=%0D%0AJavaScript%20Objects%0D%0AEarlier%20in%20this%20tutorial%20we%20have%20seen%20that%20JavaScript%20has%20several%20built-in%20objects%2C%20like%20String%2C%20Date%2C%20Array%2C%20and%20more.%20In%20addition%20to%20these%20built-in%20objects%2C%20you%20can%20also%20create%20your%20own.%0D%0A%0D%0AAn%20object%20is%20just%20a%20special%20kind%20of%20&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-create-your-own-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Variables</title>
		<link>http://www.scriptclassifieds.com/javascript/javascript-variables/</link>
		<comments>http://www.scriptclassifieds.com/javascript/javascript-variables/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 01:11:50 +0000</pubDate>
		<dc:creator>thanhlangtu</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false">http://www.scriptclassifieds.com/?p=1025</guid>
		<description><![CDATA[Variables are &#8220;containers&#8221; for storing information. Do You Remember Algebra From School? Do you remember algebra from school? x=5, y=6, z=x+y Do you remember that a letter (like x) could be used to hold a value (like 5), and that you could use the information above to calculate the value of z to be 11? [...]]]></description>
			<content:encoded><![CDATA[<p>Variables are &#8220;containers&#8221; for storing information.</p>
<hr />
<h2>Do You Remember Algebra From School?</h2>
<p>Do you remember algebra from school? x=5, y=6, z=x+y</p>
<p>Do you remember that a letter (like x) could be used to hold a value (like 5), and that you could use the information above to calculate the value of z to be 11?</p>
<p>These letters are called <strong>variables</strong>, and variables can be used to hold values (x=5) or expressions (z=x+y).</p>
<hr />
<h2>JavaScript Variables</h2>
<p>As with algebra, JavaScript variables are used to hold values or expressions.</p>
<p>A variable can have a short name, like x, or a more descriptive name, like carname.</p>
<p>Rules for JavaScript variable names:</p>
<ul>
<li>Variable names are case sensitive (y and Y are two different variables)</li>
<li>Variable names must begin with a letter or the underscore character</li>
</ul>
<p><strong>Note:</strong> Because JavaScript is case-sensitive, variable names are case-sensitive.</p>
<hr />
<h2>Example</h2>
<p>A variable&#8217;s value can change during the execution of a script. You can refer to a variable by its name to display or change its value.</p>
<p><a href="http://www.w3schools.com/js/tryit.asp?filename=tryjs_variable" target="_blank">This example will show you how</a></p>
<hr />
<h2>Declaring (Creating) JavaScript Variables</h2>
<p>Creating variables in JavaScript is most often referred to as &#8220;declaring&#8221; variables.</p>
<p>You declare JavaScript variables with the <strong>var</strong> keyword:</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>var x;<br />
var carname;</td>
</tr>
</tbody>
</table>
<p>After the declaration shown above, the variables are empty (they have no values yet).</p>
<p>However, you can also assign values to the variables when you declare them:</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>var x=5;<br />
var carname=&#8221;Volvo&#8221;;</td>
</tr>
</tbody>
</table>
<p>After the execution of the statements above, the variable <strong>x</strong> will hold the value <strong>5</strong>, and <strong>carname</strong> will hold the value <strong>Volvo</strong>.</p>
<p><strong>Note:</strong> When you assign a text value to a variable, use quotes around the value.</p>
<p><strong>Note:</strong> If you redeclare a JavaScript variable, it will not lose its value.</p>
<hr />
<h2>Local JavaScript Variables</h2>
<p>A variable declared within a JavaScript function becomes <strong>LOCAL</strong> and can only be accessed within that function. (the variable has local scope).</p>
<p>You can have local variables with the same name in different functions, because local variables are only recognized by the function in which they are declared.</p>
<p>Local variables are destroyed when you exit the function.</p>
<p>You will learn more about functions in a later chapter of this tutorial.</p>
<hr />
<h2>Global JavaScript Variables</h2>
<p>Variables declared outside a function becomes <strong>GLOBAL</strong>, and all scripts and functions on the web page can access it.</p>
<p>Global variables are destroyed when you close the page.</p>
<p>If you declare a variable, without using &#8220;var&#8221;, the variable always becomes <strong>GLOBAL</strong>.</p>
<hr />
<h2>Assigning Values to Undeclared JavaScript Variables</h2>
<p>If you assign values to variables that have not yet been declared, the variables will automatically be declared as global variables.</p>
<p>These statements:</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>x=5;<br />
carname=&#8221;Volvo&#8221;;</td>
</tr>
</tbody>
</table>
<p>will declare the variables x and carname as global variables (if they don&#8217;t already exist).</p>
<hr />
<h2>JavaScript Arithmetic</h2>
<p>As with algebra, you can do arithmetic operations with JavaScript variables:</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>y=x-5;<br />
z=y+5;</td>
</tr>
</tbody>
</table>
<p>You will learn more about the operators that can be used in the next chapter of this tutorial.</p>
<p>&nbsp;</p>
<p>source from: <a href="http://www.w3schools.com/">w3schools</a></p>
<p>&nbsp;</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables&amp;bodytext=Variables%20are%20%22containers%22%20for%20storing%20information.%0D%0A%0D%0A%0D%0A%0D%0ADo%20You%20Remember%20Algebra%20From%20School%3F%0D%0ADo%20you%20remember%20algebra%20from%20school%3F%20x%3D5%2C%20y%3D6%2C%20z%3Dx%2By%0D%0A%0D%0ADo%20you%20remember%20that%20a%20letter%20%28like%20x%29%20could%20be%20used%20to%20hold%20a%20value%20%28like%205%29%2C%20and%20that%20you%20could" title="Digg"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F" title="Sphinn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables&amp;notes=Variables%20are%20%22containers%22%20for%20storing%20information.%0D%0A%0D%0A%0D%0A%0D%0ADo%20You%20Remember%20Algebra%20From%20School%3F%0D%0ADo%20you%20remember%20algebra%20from%20school%3F%20x%3D5%2C%20y%3D6%2C%20z%3Dx%2By%0D%0A%0D%0ADo%20you%20remember%20that%20a%20letter%20%28like%20x%29%20could%20be%20used%20to%20hold%20a%20value%20%28like%205%29%2C%20and%20that%20you%20could" title="del.icio.us"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;t=JavaScript%20Variables" title="Facebook"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables" title="Mixx"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables&amp;annotation=Variables%20are%20%22containers%22%20for%20storing%20information.%0D%0A%0D%0A%0D%0A%0D%0ADo%20You%20Remember%20Algebra%20From%20School%3F%0D%0ADo%20you%20remember%20algebra%20from%20school%3F%20x%3D5%2C%20y%3D6%2C%20z%3Dx%2By%0D%0A%0D%0ADo%20you%20remember%20that%20a%20letter%20%28like%20x%29%20could%20be%20used%20to%20hold%20a%20value%20%28like%205%29%2C%20and%20that%20you%20could" title="Google Bookmarks"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.diigo.com/post?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables" title="Diigo"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/diigo.png" title="Diigo" alt="Diigo" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables" title="DZone"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" /></a>
	<a rel="nofollow"  target="_blank" href="http://cgi.fark.com/cgi/fark/farkit.pl?h=JavaScript%20Variables&amp;u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F" title="Fark"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/fark.png" title="Fark" alt="Fark" /></a>
	<a rel="nofollow"  target="_blank" href="http://faves.com/Authoring.aspx?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables" title="Faves"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/bluedot.png" title="Faves" alt="Faves" /></a>
	<a rel="nofollow"  target="_blank" href="http://laaik.it/NewStoryCompact.aspx?uri=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;headline=JavaScript%20Variables&amp;cat=5e082fcc-8a3b-47e2-acec-fdf64ff19d12" title="laaik.it"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/laaikit.png" title="laaik.it" alt="laaik.it" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables&amp;source=Classifieds+Scripts%2C+Web+Scripts%2C++Ajax+Scripts%2C+PHP+Scripts%2C+ASP+Scripts+AJAX%2C+PHP+Scripts%2C+ASP+Scripts%2C+Ad+Management%2C+Bookmark+Management%2C+Database+Tools%2C+Chat+Scripts%2C+HTML+Editors%2C+Classified+Ads+Scripts%2C+Classifieds+Script&amp;summary=Variables%20are%20%22containers%22%20for%20storing%20information.%0D%0A%0D%0A%0D%0A%0D%0ADo%20You%20Remember%20Algebra%20From%20School%3F%0D%0ADo%20you%20remember%20algebra%20from%20school%3F%20x%3D5%2C%20y%3D6%2C%20z%3Dx%2By%0D%0A%0D%0ADo%20you%20remember%20that%20a%20letter%20%28like%20x%29%20could%20be%20used%20to%20hold%20a%20value%20%28like%205%29%2C%20and%20that%20you%20could" title="LinkedIn"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables" title="Live"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;bm_description=JavaScript%20Variables&amp;plugin=soc" title="MisterWong"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;t=JavaScript%20Variables" title="MySpace"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvibes.com/share?title=JavaScript%20Variables&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F" title="Netvibes"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvibes.png" title="Netvibes" alt="Netvibes" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.netvouz.com/action/submitBookmark?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables&amp;popup=no" title="Netvouz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/netvouz.png" title="Netvouz" alt="Netvouz" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;h=JavaScript%20Variables" title="NewsVine"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.propeller.com/submit/?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F" title="Propeller"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/propeller.png" title="Propeller" alt="Propeller" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables" title="Reddit"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=JavaScript%20Variables&amp;url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F" title="Slashdot"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://socialogs.com/add_story.php?story_url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;story_title=JavaScript%20Variables" title="Socialogs"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/socialogs.png" title="Socialogs" alt="Socialogs" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;title=JavaScript%20Variables" title="StumbleUpon"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>
	<a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F" title="Technorati"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JavaScript%20Variables%20-%20http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F" title="Twitter"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.scriptclassifieds.com%2Fjavascript%2Fjavascript-variables%2F&amp;submitHeadline=JavaScript%20Variables&amp;submitSummary=Variables%20are%20%22containers%22%20for%20storing%20information.%0D%0A%0D%0A%0D%0A%0D%0ADo%20You%20Remember%20Algebra%20From%20School%3F%0D%0ADo%20you%20remember%20algebra%20from%20school%3F%20x%3D5%2C%20y%3D6%2C%20z%3Dx%2By%0D%0A%0D%0ADo%20you%20remember%20that%20a%20letter%20%28like%20x%29%20could%20be%20used%20to%20hold%20a%20value%20%28like%205%29%2C%20and%20that%20you%20could&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.scriptclassifieds.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.scriptclassifieds.com/javascript/javascript-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

