For a project I am working on I am running into some Javascript coding from a previous programmer, this is basically structured as follows.
var c_test = {
testVar : '',
init : function()
{
c_test.testVar = 'Hello world!';
},
showMe : function()
{
alert(this.testVar);
}
};
Example above created to show a basic version of the extensive coding I found like this. I suppose it is some form of object orientated JS, but I am unsure how to use it properly. For example, how would I go about calling this bit of code and running the 'showMe()' function?