Javascript - object key->value
<pre><code>var obj = {
   a: "A",
   b: "B",
   c: "C"
}

console.log(obj.a); // return string : A
</code></pre>

<p>but i want to get by through a variable like this</p>

<pre><code>var name = "a";
console.log(obj.name) // but return undefined
</code></pre>

<p>How to do this?</p>
