|
|
|
|
|
|
|
|
|
|
|
|
|
Declaration: the function “package,”
|
|
|
says
what happens when the
|
|
|
function
runs
|
|
|
Call: the
function use, asks for the
|
|
|
computation
to be run
|
|
|
|
• |
There is only one function declaration
|
|
|
|
• |
There can be many calls … functions are
|
|
|
reusable
|
|
|
|
• |
In JS, functions tend to be grouped together
|
|
but the calls go where they are needed
|
|