Functions can take parameters.

In the function declaration, a parameter is a name, followed by a colon, followed by a type. The function declaration can have no parameters, a single parameter, or a comma-delimited list of parameters.

When you call a function, you can pass the parameter values in same order in which they are declared.

You can learn more about this in:
Run Edit