The function can be called from anywhere within the page or from other external pages.
Functions can be defined either<head> or <body> tag.
The most common way to define a function (optional), and a statement block surrounded by curly braces.
As a convention, they are typically defined in the <head> </head> section.
Calling a Function:
The syntax to invoke a function is: