Im trying to make a function that makes a 2d array but I have a syntax error here is the function
function asdf(col,row)
{
let arr = new Array(col);
let i = 0;
for (i < col; i++)
{
arr[i] = new Array(row);
}
return arr;
}
the error is at the ")" at the end of the for loop any ideas?