Hello all.
I am not sure what the benefit will be to this besides keeping is all together..?
My goal is to create a class for functions I wrote.
The functions all work together for one purpose so I would like them packaged if possible.
The only classes I know are in php so this seems a bit different to me.
I would have thought this would work.?
Code:
function myClass()
{
var a = "HELLO";
function init()
{
alert("MSG: "+ this.a);
}
}
myClass.init;
Can someone please give me a tip and maybe wirte a simple example?
Thank you,
Jon