title: Calling Javascript variable dynamically
body: <p>below are the global variables that i have defined as....</p>
  
  <pre><code>global1 ="global1 contents";
  global2 ="global1 contents";
  </code></pre>
  
  <p>Now i want to call this in something like this  </p>
  
  <pre><code>console.log(global+"1") ; 
  </code></pre>
  
  <p>how can we call global variable by splitting the last character?</p>