Advertisements
Advertisements
प्रश्न
What is the use of function?
टिप्पणी लिखिए
उत्तर
- Functions are used to encapsulate code that performs a specific task.
- Functions are used to keep code that performs a particular job in one place in order to enhance reusability and program clarity.
shaalaa.com
JavaScript Functions
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
The parameters work as ______.
Larger programs are divided into smaller are called ______.
Which of the following is used to enhance reusability and program clarity.
What is a function in JavaScript?
Write a note on Library functions.
Write a program in JavaScript to find the cube of a number using function.
Write a program in JavaScript to find the sum of 10 numbers using function?