Function in JavaScript

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.

  1. Function Declaration
  2. Function Definition.
  3. Function Call

In JavaScript function declaration and definition are done together.

abhishek k
Tagged : / / /
0 0 votes
Article Rating
Subscribe
Notify of
guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
trackback

[…] Want to know what is function and how to use them in JavaScript? Just click here. […]

1
0
Would love your thoughts, please comment.x
()
x