SOURCE

let result = '';
let i = 0
do {
   i = i + 1;
   result = result + i + ' '
} while (i < 5)
document.write(result)
console 命令行工具 X clear

                    
>
console