A unary function is a function that takes one argument.
function increment(x) {
return sum(x,1)
}A binary function is a function that takes two inputs.
function sum(x,y) {
return x + y;
}A variadic function is a function where the total number of parameters are unknown and can be adjusted at the time the method is called.
function f(...args) {
console.log(args);
}