JavaScript Functions – Javascript Tutorials

In this article you will learn about the JavaScript functions.
What is JavaScript Function?
Java script Function is nothing but it is a reusable code-block that is execute when the function is called. Function is defined in the head section of the code. The syntax of JavaScript function is as follows:
function fname(prameter1,parameter2, …)
{
JavaScript code 1
JavaScript [...]

