title: Why is my method not being invoked by variable name
body: <p>When I invoke a method through a variable name i keep getting </p>
  
  <pre><code>TypeError: window[$hello] is not a function
  </code></pre>
  
  <p>I have been reading other posts about this in stack overflow, but its doesn't seem to be working on my code. I am not sure what I am doing wrong here. </p>
  
  <p>If anyone can help me I would really appreciate it. Below is my code! Thanks!</p>
  
  <pre><code>function Actions(){
  
  
  
      function hello(){
  
          alert("hello world");
  
  
      }
  
  
      (function(){
  
          $(document).on("change",".item-actions",function(){
  
              var $hello = "hello";
  
          window[$hello]();
  
  
          });
  
  
  
  
      })();
  
  
  
  
  }
  </code></pre>