I somehow solved solved the challenge where it required that the code is to return a 2D array na dmy solution worked.
here it is:
for (let j = 0; j < n; j++) {
row = [0];
row.push(0);
I decided to put the row inside the inner iteration and it worked and looking at the freecodecamp’s solution it is not a match.
could there be a problem arising from the solution I have given because I seem to get none.