title: How to call a function using Object's Key..?
body: <p>From my object iteration, i am trying to call the function and sending data as parameter, on my try, i am getting error..</p>
  
  <p>what is the proper approach to call the function using the object keys..?</p>
  
  <p>my try:</p>
  
  <pre><code>var x = function(msg){
      console.log(msg);
  }
  var y = function(msg){
      console.log(msg);
  }
  
      var obj = {x:"i am x", y:"i am y"}
  
      var all = function(){
          $.each(obj,function(key,value){
             [key](value);
          })
      }
  
      all();
  </code></pre>
  
  <p>any one figure ou the correct approach pls..
  here is the <a href="http://jsfiddle.net/9XqeJ/" rel="nofollow">jsfiddle link</a></p>