Multidimensional Arrays not stacking


#1

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?

https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/3/2?curriculum_id=506324b3a7dffd00020bf661#

var newArray = [[1, 2, 3], [myObj]];
var myObj = {
    name: "shawn", 
    age: 101
}
console.log(newArray);

#2

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