What is a Function in JavaScript
A JavaScript function is a block of code designed to perform a particular task. In simple terms, Functions are used to make work easy, reduce the effort of coding multiple lines for the same task which is needed to repeat multiple times.
- Function Declaration
- Function Definition.
- Function Call
In JavaScript function declaration and definition are done together.
Latest posts by abhishek k (see all)
[…] Want to know what is function and how to use them in JavaScript? Just click here. […]