How do functions work in javascript?
Answer / Amit Pant
Functions in JavaScript are blocks of reusable code that can perform specific tasks. They can accept input data (arguments), perform computations, and return output data as a result. Functions can be declared using the `function` keyword or ES6 arrow functions. For example: `function add(a, b) { return a + b; }` or `const add = (a, b) => a + b;`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Give an example of closure?
why we calld java object orinted programming language??
How do I enable javascript on google?
What is Associative Array? How do we use it?
What is the Use of true or false in Ajax cal using Java Script?
How to reload the current page?
Is there any class in javascript?
How onclick works in javascript?
What is difference between java and javascript?
Why is object naming important to use in javascript?
Why is javascript called richer interface?
What are the advantages of using external javascript?