Multiple Parameters in JavaScript Functions
Multiple Parameters in Function
We can add multiple parameters to a JavaScript function. However, when calling the function, we have to place arguments in the same order in which the parameters are defined. We can use such functions multiple times in our project.
Syntax:-
function my_function(your_name , your_age){
console.log("Your Name:- " + your_name + "Your age:- " + your_age);
}