So I seem to be having trouble creating inner nested objects in JS and calling them. I have been looking at various examples but this has been a persisting problem and I would like a bit of explanation to help me understand where I am screwing up. THanks!
var cars = {
make : [
{ make1 : "ford"},
{ make2 : "fiat"},
{ make3 : "toyota" [
{ modelA : "camry"},
{ modelB : "landcruiser"}
]
};
}
console.log(cars.make[2].modelB)