I am new to javascript language. The format is given on web, I tried but it giving the undefined result.
var name = {
a : 'a',
b:'b',c:'c'
};
console.log(name.a);// undefined
console.log(name);// '[object object]'
The output is undefined ? why