SOURCE

function addsun(n,m){
    if(n==m){
        return n
    }else{
        return n + addsun(n+1,m)
    }
}
console.log(addsun(1,100))
console 命令行工具 X clear

                    
>
console