SOURCE

    function sum_all3() {
        var result3 = 0;
        var i = 0;
        do {
            i++;
            result3 += i;
        }
        while (i <= 100);

        return result3
    }

    alert(sum_all3())
console 命令行工具 X clear

                    
>
console