In python, you can do this:
[([None] * 9) for x in range(9)]
and you\'ll get this:
[[None, None, None, None, None, None, No
Use this function or some like that. :)
function createMatrix(line, col, defaultValue = 0){ return new Array(line).fill(defaultValue).map((x)=>{ return new Array(col).fill(defaultValue); return x; }); } var myMatrix = createMatrix(9,9);