title: Calling a function using a parameter in it's name
body: <p>Can I put all of this code in one line, like "Level  + index ()" Is it possible?</p>
  
  <p>I have this switch function:</p>
  
  <pre><code>switch(index)
      {
          case 1:
          Level1();
          break;
          case 2:
          Level2();
          break;
          case 3:
          Level3();
          break;
          case 4:
          Level4();
          break;
          case 5:
          Level5();
          break;
      }
  </code></pre>
  
  <p>as you can see, each index calls a function with the name "Level" and the index number.</p>