Access value of variables
<p>We can call variables by their names like this :  </p>

<pre><code>var name="a";
var a=4;
eval("alert("+name+")");//this will alert 4
</code></pre>

<p>But I heard that eval is not recommended. Is there a way to call variables by their names without eval ?</p>
