Functions

A subprogram that is given an identifier in order to perform a task and return a value. It is usually called from a variable and returns a value which can then be used like any other variable.

For example:

function

function output

 

 

 

 

 

 

 

 

 

 

 

Leave a comment