New course! Every coder should learn Generative AI!
Try a free lesson0
How to use three variables in function
2 Answers
+ 12
function f(x, y, z) {
return x+y+z;
}
alert(f(1,2,3));
// alerts 6
+ 4
Declare the function in this format:
function f(var x, var y, var z) { }