Add a variable in an existing variable name in javascript
<p>in the beginning i declare a variable like this:</p>

<pre><code>var content = "likes";

var main_likes_data = true;
</code></pre>

<p>And later i want to change the variable to false, but i need to add a new variable like this:</p>

<pre><code>main_" + content + "_data = false;
</code></pre>

<p>But this does not work!</p>

<p>Can someone please tell me the right sytax to change the variable?</p>

<p>Thank You!!!</p>
