SOURCE

let a = length = 10
for(var j=0;j<a.length;j++){
    for(var i =0;i<a.length;i++){
        console.log(i)
        if( i==5 ){
            break
        }
    }
}
console 命令行工具 X clear

                    
>
console