Archive for April 5th, 2009

Overview of JavaScript

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.

JavaScript is case sensitive means, following statements will have different meaning

var myObject = 1;
var myobject = 2;

instead of using confusing variable declaration better to follow the standards for naming the variable names.

JavaScript Variable

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.

var varnumber = 2;


var varstring = "Test";

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.

JavaScript Function

JavaScript functions are defined with the keyword Function. Typically functions are created for using the same code over the complete application.  Like other programming languages JavaScript functions also accept parameters and return values. JavaScript Functions can also be placed in a separate JavaScript file.

function demo() {
    alert("Demo function");

JavaScript Prototype

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

this object can access the new member by using the keyword this followed by a dot “.”

and the name of the member.

JavaScript Types

Following types are supported in JavaScript

Number: JavaScript treat all kind of number variables as number, this includes integer,double and short. Number keyword can also be used for declaring numbers .

String: 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.

var doublequote="This is a JavaScript string";
var singlequote = 'This is another string';

Boolean: Boolean variables hold the true of false values

var testboll= true;

Date: Date object allows date/time calculations.

Function: JavaScript functions also work as objects means programmers can pass a function from one object to another object.

Object: Objects are user defined types.

Array: Array are special type of objects contains variables and object. Array are accessed through index like in other programming languages.

At Mix 2009 Microsoft has released the ASP.NET MVC 1.0 and after that Microsoft released the source code of ASP.NET MVC 1.0 source code under the Microsoft Public License (MS-PL).  MS-PL is an OSI-approved open source license.  The MS-PL contains no platform restrictions and provides broad rights to modify and redistribute the source code.  You can read the text of the MS-PL at:

Now with source code third party developers can also modify the source code according to their requirements and share with developer community. ASP.NET MVC 1.0 is also adopted by Mono project team

Download ASP.NET MVC

Click here to download and install ASP.NET MVC 1.0.  You can also install it using the new Microsoft Web Platform Installer V2 – which provides an integrated setup experience for the entire Microsoft web stack.

The ASP.NET MVC 1.0 source code is now available.  Scroll down to the bottom of the ASP.NET MVC download page and you’ll find links to both the ASP.NET MVC 1.0 integrated MSI setup, as well as a .zip file that contains the ASP.NET MVC source code.  The ASP.NET MVC source code includes a VS 2008 project file that enables you to build it.