/* This function takes a number, n, and returns an n*n nested array populated with the value null. E.g. if n is 3, we want: [ [null, null, null], [null, null, null], [null, null, null] ] */
How do I make a function thats create a new array and populates it?
edit: just got told to go look at Array.fill so Might be a redundant thread now lol
You can create an empty array of length n with new Array(n) and then fill it with nulls with something like myArray.fill(null)