Hi @Pellerin
myCars is an object storing objects and properties of Javascript objects are unordered.
You can’t access an object stored in an object without defining a key.
However you can use this syntax if it’s really what you want to do:
myCars[Object.keys(myCars)[0]]
{manufacturer: "Volvo", year: 1996, distance: 10000}
If you want to use the first notation you will have to store your objects with a key value syntax where the index is the key:
var myCarsByIndex = {0: car1}
myCarsByIndex[0]
{manufacturer: "Volvo", year: 1996, distance: 10000}
or store an array inside your object
myCarsByIndex = {"ArrayOfCars":[car1, car2, car3]}
{ArrayOfCars: Array(3)}
myCarsByIndex.ArrayOfCars[0]
{manufacturer: "Volvo", year: 1996, distance: 10000}