Ok, so this might be a super dumb question but I was doing some review on objects in js and I saw the w3 schools example for it and I tried doing my own. Didn't work, just printed undefined. Copied the w3 schools right over and it did work. Changed the names and it didn't. I asked one of my good coder friends and he could not figure it out either. Here's the code I'm trying:
var car = {type:"Fiat", model:"500", color:"white"};
var name = {first:"Owen", last:"Donnelly"};
When I do car.type it prints Fiat but when I type name.first it says undefined.