SOURCE

var num = 0;
for(var i=1; i<=100; i++){
    num+=i;
}
document.write(num);
console 命令行工具 X clear

                    
>
console