yea u have to create a nested loop if you have an array like this: arr[4][4]
it will give a table like this:
you can update columb as follows:
for(let i = 0; i < n; i++){
for(let j = 0; j < n; j++){
arr[i][j] = value;
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…