Trying to add three numbers in javascript using functions but its not adding them instead it just writes them as one number
function numinput(a,b,c,res){
a = prompt("Enter first number");
b = prompt("Enter second number");
c = prompt("Enter third number");
res = a + b + c ;
alert (res);
}
numinput();