SOURCE

let sum = 0, i = 1;
while (i <= 10) {
    sum += i;
    i++;
}
console.log(sum);
console 命令行工具 X clear

                    
>
console