SOURCE

var arr = ['1']
console.log(arr)
for(var i = 0; i < 10; i++){
     arr[i] = i + 1;
}
console.log(arr)
console 命令行工具 X clear

                    
>
console