<p>Simply put, is there a way to create a 2D javascript array using similar syntax to this?</p>

<pre><code>var newArray = [
    [0, 1, 2],
    [3, 4, 5],
    [6, 7, 8]
]
</code></pre>

Yes. This works fine:
```
```
<script>
var newArray = [
    [0, 1, 2],
    [3, 4, 5],
    [6, 7, 8]
]
alert(newArray[0][2]);
</script>
```
```