next up previous
Next: Parameter Passing Up: JavaScript: Formal Syntax Previous: Operators

Functions

We have already seen some simple JavaScript functions in action.

The syntax for defining Functions:

function name (parameters )

 {
   // Function code goes here
 }



 

Dave Marshall
9/28/2001