The alert function gets a string, so when you passed the object to that function you got the string-representation of that object.
You actually did get the object you were looking for, but you just didn't know it because you used alert for debugging (which is not a good practice). You better use console.log for that (you can open the developer toolbar to see the results of console.log using F12).
If you want you can convert the object to json string (using JSON.stringify) and alert the result:
var dinosaursObjectArray = [
{ name: "Tyrannosaurus Rex", period: "Late Cretaceous" },
{ name: "Stegosaurus", period: "Late Jurassic" },
{ name: "Plateosaurus", period: "Triassic" }
];
var dinoArray = dinosaursObjectArray[0];
console.log(dinoArray);
alert(JSON.stringify(dinoArray));
alert(dinoArray);withconsole.log(dinoArray);, press F12 to open the console and you'll see it. Don't use alert for debugging