|
|
|
|
|
|
|
|
|
|
|
|
Functions
have a specific syntax
|
|
|
|
function <name> ( <parameter list> ) {
|
|
|
|
<function definition>
|
|
|
|
}
|
|
|
|
• |
<name> names are identifiers; start
w/letter
|
|
|
|
• |
<parameter
list> is the
input variables, a list
|
|
|
separated by commas
|
|
|
|
• |
<function
definition> is
just the program to do
|
|
the work
|
|