Functions let you group a series of statements together to perform a specific task. If different parts of a script repeat the same task, you can reuse the function (rather than repeating the same set of st atements).
parameters like a var
Divide the infidel problem into small problems that you can solve.
=
like: (var == ‘1’ && var < ‘10’)