Microsoft JScript functions perform actions. They can also return results. Sometimes these are the results of calculations or comparisons.
Functions combine several operations under one name.
This lets you streamline your code. You can write out a set of statements, name it, and then execute the entire set any time you want to, just by calling it and passing to it any information it needs. You pass information to a function by enclosing the information in parentheses after the name of the function. Pieces of information that are being passed to a function are called arguments or parameters. There are even functions for which the number of arguments depends on how you are using the function.