How can I build JavaScript instruction dynamically from parameters?
<p>I want to construct javascript instruction dynamically </p>

<p>the original instruction is :</p>

<pre><code> var chou = eval('(' + returnResult + ')').attribute;
</code></pre>

<p>I want to pass the attribute as variable is it possible?</p>

<p>I have tried :</p>

<pre><code> var chou = eval('(' + returnResult + ')').eval(baseentity);
</code></pre>

<p>but it doesn't work.</p>
