Advertisements
Advertisements
Question
What is a function in JavaScript?
One Line Answer
Solution
A function is a block of JavaScript code that is defined once but may be executed or invoked any number of times.
shaalaa.com
JavaScript Functions
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
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 the use of function?
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?