Posted in All Posts, Semester 2

JavaScript Basics – Functions

Like C, JavaScript also offers the use of functions in programs. Basically, a function is a reusable block of statements that performs a particular task.

Let us know about the syntax of a function in JS-
The function is defined using the function keyword followed by the name of the function. Below is the coding for the same.

Try It Yourself

We hope that you found this article to be helpful.
Please share your thoughts in the Comments Section.

If you liked this article, then please like our Facebook page.

Suggested Reading

Comment your thoughts