34,333
edits
Changes
→Declaring and Calling a JavaScript Function
The ''name'' specifies how we will refer to this function when we call it. The ''arguments'' specify values that are passed through to the function to be processed. The ''statements'' section represents the body of the function that performs the processing. The optional ''return'' statement allows a value to be returned the section of scripted that called the function (for example to return a status or the result of a calculation.
<pre>