Function
Moscrif function is similar to a math function. It usually contains parameters, inputs and it returns a value. However, this is not necessary. We can define a function that does not have any parameter and does not return any value.
Example of Math function represented by Mosrif function:
//math function
y = x/2; //Moscrif function function half(x)
{
var y = x/2
return y;
}
Moscrif script Function is an object with additional properties and methods defined.