hello guys i'm beginner of javascript! I know there are two ways to get object value
if there is object
object = {
   1:"one",
   2:"two".
}
1st : object.1 2nd : object[1]
but i wonder why this code has error
var product = {
    1:{title:'The history of web'},
    2:{title:'The next web'}
};
for(var name in product){
    product[name].title -> OK
    product.name.title -> error!!
}
what is difference between two codes!
