Functions in JavaScript
What is a Function? A function is a block of code or a subprogram designed to perform a particular task. Function is executed only when it is called. This is called invoking/calling a function. Thus it eliminates writing the same code again and again. Values can be passed into functions and used within the function body. Function always returns a value, if no return type … Read more