I have been reading online and some places say it isn\'t possible, some say it is and then give an example and others refute the example, etc.
How do I dec
To create an 4x6 array, simply do this
const x = [...new Array(6)].map(elem => new Array(4))
It's usually a good practice to start with an empty array, rather than filling w random values. (You normally declare array as const x = [] in 1D, so better to start w empty in 2D.)
const x = []