Syntax
- A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses ().
function name(parameter1, parameter2, parameter3) { // code to be executed }
- Operator Functions
Accessing a function without () will return the function object instead of the function result.