title: how to convert a full function string to a javascript function without using eval()
body: <p>I have a varible string like </p>
  
  <pre><code>var z = "anuj.working = false;anuj.downloadFile(event,'opp-for-download','anuj@anuj Demo Guide For Partners.pdf.zip (5.3 MB)','/file/dam/mail Anuj@anuj @Anuj  Demo Guide For Partners.pdf.zip','zip',null)";
  </code></pre>
  
  <p>how can i convert it to a function. i don't want to use eval().</p>