I failed to find out reason of the output: 337
function mlt(a, b){
if(!(a&&b)) {
return 0;
}else if(b==1){
return a;
} else {
return (a + mlt(a, b-1));
}
}
document.write(mlt(3, 11));
document.write(mlt(7, 1));