📅  最后修改于: 2022-03-11 15:02:41.043000             🧑  作者: Mango
const multiply = (x,y)=>{
if(x==1){ return y;}
else if(x>1){
return y +multiply(x-1,y)
}
else throw "Not Numbers"
}
var result = multiply(4,3);
console.log(result)