Get string length after append name
<p>If i add a value to a string name i want to get the length of the string not the length of the string name.</p>

<pre><code>var wordlist3 = "ABC";
var xc = 3;
var num_words = ('wordlist' + xc).length;
</code></pre>

<p>With the above code i get wordlist3.length as 9 when it should be 3. How do i append a string name so it references the length of the string in wordlist3, without making it a global var?</p>

<p>Im expecting the answer:</p>

<pre><code>num_words = 3
</code></pre>

<p>not</p>

<pre><code>num_words = 9
</code></pre>
