function addsun(n,m){ if(n==m){ return n }else{ return n + addsun(n+1,m) } } console.log(addsun(1,100))