functionNN 2 IE 3 ECMA 1

Le mot-clé function commence une définition de fonction nommée. Pour les fonctions anonymes, reportez-vous à l'objet Function.

 
Exemple
 
function myFunc(arg1, arg2) {
    // function statements here
}