let s:number[][];
How can I fill this s matrix as 0 of n * n.
[[0, ..., 0], [0, ..., 0] ... [0, ..., 0]]
This is what I'm doing
for(let i = 0;i < n;i ++) {
let ss = [];
for(let j = 0;j < n ;j ++) ss.push(0);
s.push(ss);
}
It's working but is there any more efficient and sophisticated way?