Answers for "function add and multiply javascript"

0

multiply js

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)
Posted by: Guest on March-06-2021

Code answers related to "function add and multiply javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language