Multidimensional Arrays not stacking


When I use console.log to print my Multidimensional Arrays the terminal prints the array back on one line. Shouldn’t each dimension be printed on separate lines?

var newArray = [[1, 2, 3], [myObj]];
var myObj = {
    name: "shawn", 
    age: 101


nope, the spaces in the edior are pure for your own readibility. There is no reason for JS to print the properties on separate lines, if you want this, you will need a loop

i would define the object first, then the array. Currently the object in array undefined