title: How to access javascript variable value by creating another variable via concatenation?
body: <p>Please have a look on the following code -</p>
  
  <pre><code>var abc_text = "Hello";
  var def_text = "world";
  
  function testMe(elem) {
      var xyz = elem+"_text";
      alert(xyz);
  }
  
  testMe("abc");
  testMe("def");
  </code></pre>
  
  <p>I am trying to pass prefix to a function and the try to print some pre-defined values by concatenating. But the above example just prints "abc_text" and "def_text" .. instead of "Hello" and "world". How can I get it working?</p>
  
  <p>Thank you.</p>
  
  <p>EDIT</p>
  
  <p>I am using Jquery.</p>