Variables and Types

From SDU
Revision as of 03:31, 24 November 2010 by Agegeleruvy (Talk | contribs)

Jump to: navigation, search


This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page


CLICK HERE


To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Declaring variables

<source lang="javascript"> int theInt; long theLong; string theString; object theObject; </source>

Assignment of variables

<source lang="javascript"> int theInt, anotherInt; theInt = 0; anotherInt = 10; </source>

Casting

<source lang="javascript"> string theString; theString = "5"; int theInt; theInt = (int)theString; </source>

NULL

<source lang="javascript"> object theObject; theObject = NULL; </source>