<?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>ASP.Net Blog &#187; JavaScript</title>
	<atom:link href="http://allaboutasp.net/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://allaboutasp.net</link>
	<description>Your .Net Zone</description>
	<lastBuildDate>Mon, 14 Jun 2010 00:58:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Overview of JavaScript</title>
		<link>http://allaboutasp.net/2009/04/overview-of-javascript/</link>
		<comments>http://allaboutasp.net/2009/04/overview-of-javascript/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 02:40:46 +0000</pubDate>
		<dc:creator>Ajay Pathak</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JavaScript types]]></category>
		<category><![CDATA[Prototype]]></category>

		<guid isPermaLink="false">http://allaboutasp.net/2009/04/overview-of-javascript/</guid>
		<description><![CDATA[JavaScript is scripting programming language used at client side as well as at server. JavaScript does not have any relation with Java programming language. However JavaScript syntax some what similar to Java. JavaScript is not a complied language and partially object oriented means it does not support all the features of object oriented programming language. [...]]]></description>
			<content:encoded><![CDATA[<p>JavaScript is scripting programming language used at client side as well as at server. JavaScript does not have any relation with Java programming language. However JavaScript syntax some what similar to Java. JavaScript is not a complied language and partially object oriented means it does not support all the features of object oriented programming language. JavaScript also has features of dynamic language means programmer can change the type of object at runtime. </p>
<p>JavaScript is case sensitive means, following statements will have different meaning </p>
<pre class="code"><span style="color: blue">var </span>myObject = 1;
<span style="color: blue">var </span>myobject = 2;
alert(myObject);
alert(myobject);</pre>
<p>instead of using confusing variable declaration better to follow the standards for naming the variable names.</p>
<h2>JavaScript Variable</h2>
<p>JavaScript also used variable for storing and processing in memory data. JavaScript variables are not strongly typed. var keyword is used for declaring variable in JavaScript. </p>
<pre class="code">

<span style="color: blue">var </span>varnumber = 2;
<span style="color: blue"></span>

<span style="color: blue"></span>&#160;

<span style="color: blue">var </span>varstring = <span style="color: #a31515">&quot;Test&quot;</span>;
</pre>
<p>You can see that we have used the keyword var for declaring an integer value as well as for string value. we can also assign different values to same variable name. </p>
<h2>JavaScript Function</h2>
<p>JavaScript functions are defined with the keyword Function. Typically functions are created for using the same code over the complete application.&#160; Like other programming languages JavaScript functions also accept parameters and return values. JavaScript Functions can also be placed in a separate JavaScript file.</p>
<pre class="code"><span style="color: blue">function </span>demo() {
    alert(<span style="color: #a31515">&quot;Demo function&quot;</span>);
}</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<h2>JavaScript Prototype</h2>
<p>JavaScript prototype is a property that allows programmers to change types at runtime. Once a method or an attribute has been added to the prototype of an object, instances of<br />
  <br />this object can access the new member by using the keyword this followed by a dot “.” </p>
<p>and the name of the member.</p>
<h2>JavaScript Types</h2>
<p>Following types are supported in JavaScript</p>
<p><font size="2"><strong>Number:</strong></font> JavaScript treat all kind of number variables as number, this includes integer,double and short. Number keyword can also be used for declaring numbers .</p>
<p><font size="2"><strong>String:</strong></font> character strings in JavaScript can be defined in two ways using the single quote or double quote. String keyword can also be used for defining string values. </p>
<pre class="code"><span style="color: blue">var </span>doublequote=<span style="color: #a31515">&quot;This is a JavaScript string&quot;</span>;
<span style="color: blue">var </span>singlequote = <span style="color: #a31515">'This is another string'</span>;</pre>
<p><a href="http://11011.net/software/vspaste"></a><font size="2"><strong>Boolean:</strong></font> Boolean variables hold the true of false values </p>
<pre class="code"><span style="color: blue">var </span>testboll= <span style="color: blue">true</span>;</pre>
<p><font size="2"><strong>Date:</strong></font> Date object allows date/time calculations. </p>
<p><font size="2"><strong>Function:</strong></font> JavaScript functions also work as objects means programmers can pass a function from one object to another object.</p>
<p><font size="2"><strong>Object:</strong></font> Objects are user defined types.</p>
<p><font size="2"><strong>Array:</strong></font> Array are special type of objects contains variables and object. Array are accessed through index like in other programming languages. </p>
]]></content:encoded>
			<wfw:commentRss>http://allaboutasp.net/2009/04/overview-of-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
