SOURCE
JavaScript
Result
for (var i = 0; i < 5; i++) { ((i) => { setTimeout(() => { console.log(i) }, i * 1000) })(i) }
console 命令行工具
X
clear
>
console