Generate a 2-D array in Javascript : <p>I would like to generate a 2-D array in javascript representing the grid below.Tried different things but in vain.
<a href="https://i.stack.imgur.com/k2DSG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k2DSG.png" alt="enter image description here"></a></p>
