Objects

Objects are like functions. They have properties(like parameters) and methods(like functions). To create an object, use the object template:

function objectname(parameter1, parameter2)
{
this.property1 = parameter1;
this.property2 = parameter2;
}
myobject = new objectname(1, 2);
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License