SOURCE

for (let i = 1; i <= 5; ) {
    console.log("i = " + i);
    i++;
}

for (let i = 1; i <= 5; i++) {
    for (let j = 1; j <= 5; j++) {
        console.log("i=" + i, " j=" + j)
    }
}
console 命令行工具 X clear

                    
>
console