« Back to Glossary IndexIt is a set of statement or subprogram that performs a particular task.It is only executed when they are called.Calling the function is known as INVOKING A FUNCTION.Function always returns a value. In #js if no return value is specified, the function will return undefined.