Function declarations follow the "one true brace" convention:
Arguments with default values go at the end of the argument list. Always attempt to return a meaningful value from a function if one is appropriate.
Here is a slightly longer example:
The opening brace is written on the same line as the function declaration. The closing brace is always written on its own line. Any content within the braces should be indented.
Next: Comments