0

How to use three variables in function

12th Nov 2017, 11:26 AM
Rishu Kumar
Rishu Kumar - avatar
2 Answers
+ 12
function f(x, y, z) { return x+y+z; } alert(f(1,2,3)); // alerts 6
12th Nov 2017, 12:39 PM
qwerty
qwerty - avatar
+ 4
Declare the function in this format: function f(var x, var y, var z) { }
12th Nov 2017, 11:59 AM
DAB
DAB - avatar