Skip to content

Latest commit

 

History

History
executable file
·
1 lines (1 loc) · 411 Bytes

File metadata and controls

executable file
·
1 lines (1 loc) · 411 Bytes

The code sample above shows 3 different methods for declaring a function. As mentioned above, each function has a name that describes its purpose. The functions are called using the method name and a set of parenthesis. The most common way of creating a method is through function declaration. This is the ideal method as the statements inside the functions are clearly shown along with the parameters (if any).