JavaScript/Reserved words/function

The function keyword
The function keyword stars the declaration and definition of a function. It can be used in two ways: either as

or as

Examples
The code