|
// Class Example
System.Classes.HelloWorld = function(){ return {
Message : "Hello World!",
Hello : function()
{
alert(this.Message);
}
};}
//PreConstructed class with methods
System.Classes.HelloDevelopers = {
Message : "Hello Developers",
Message2 : "Hello Developers Again",
Message3 : "Wassup!",
Hello : function()
{
alert(this.Message);
}
}
//Static Method
System.Classes.HelloMom = function()
{
var Message = "Hi";
var Message2 = "Mom!";
alert(Message + " " + Message2);
}
//Global Namespace Variable
System.Classes.Hey = "Hey";
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.