📅  最后修改于: 2022-03-11 14:48:18.391000             🧑  作者: Mango
const add = (input1, input2) =>{
console.log(input1+input2);
return input1+input2;
}
const inp = (abc) =>{
let a = parseInt(prompt("Enter first number"));
let b = parseInt(prompt("Enter second number"));
inp1 =Number(a);
inp2 =Number(b);
return abc(inp1,inp2);
}
alert(inp(add));