Introduction to JS
Introduction Of Javascript
If we want same type of operations to perform again and again than at that time javascript functions we can use. Some of the advantages are as follows :-
Js Function syntax
Syntax
function functionName([arg1, arg2, ...argN]){
//code to be executed
}
Let's take an example:-
We can see for a fixed time we recapitulate our elements here.
Js Function arguments
We can also pass the argument inside the function .
Let's take an example:-16
Js Function with return value
We can use return keyword that returns a value which we can use in our program .
Let's take an example:-27
JS training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute