Javascript Function

A javascript function is a group of statements that is used for performing a specific task. We can invoke it from anywhere in our program. It provides the facility of code re-usability. Syntax: function functionname(parameterList) { //Block of statements } JavaScript Function Object: For the global execution of a piece of code, a new Function … Read more