HTML and CSS Reference
In-Depth Information
This function uses a standard for-loop to iterate through all the arguments, and simply adds
them to a result variable that is returned at the end.
This can then be invoked as follows:
> add(6,2,9,20)
Naturally, it is especially important to add comments to functions that accept variable num-
bers of parameters; otherwise it can be difficult to work out how to invoke them.
Search WWH ::

Custom Search