SOURCE

   function sum_all2() {
        var result2 = 0;
        var i = 0;
        while (i <= 100) {
            i++;
            result2 += i;
        }
        return result2
    }

    alert(sum_all2());
console 命令行工具 X clear

                    
>
console