Calling a method
Calling a method refers to a block of code that takes some parameters and returns a value.
The following script shows two parameters, (a, b) being
called from the code.
function add(a, b)
{
return a + b;
}
var sum = add(1,2);
out.writeln("Sum is " + sum);