title: changing string to a function in javascript (not eval)
body: <pre><code>var foo = "function (){ alert('meee'); }";
  foo();
  </code></pre>
  
  <p>I have tried the above but it does not work is there any other way to execute that function without using eval?</p>
  
  <p>thnx</p>