Function JavaScript Tutorial

Syntax

function name(parm1, parm2, â€¦, paramN)
    function name()
The function keyword is used for specifying JavaScript functions.
Javascript functions typically contain a series of JavaScript statements that are grouped together to perform a specific task.
The name is the name of the function and parm1 through paramN are any optional parameters.