Win an Ipad
  Developer   Documents   Function

Function

This article explain the basics of functions.

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.

 Regular Expressions   Function   Object 
Write a Comment (0)
Subject
Please complete this mandatory field.
HTML Tags Not Allowed!
Comment
Please complete this mandatory field.