SOURCE

var a = 0
while(a < 5){
    console.log(a)
    a++
}

a = 0
do{
    console.log(a)
    a++
}
while(a<5)
console 命令行工具 X clear

                    
>
console