group of statementsthat are grouped together to perform certain task. Once after defining the function,it has to be called to execute. Function can be called as
"mini-program", because a function is written once and can be used as many times as needed in a program. A function can be called with the function name. Function executes only when it is called but cannot be executed automatically during page buffering.