title: I get a javascript code stored in string format want to convert to pure javascript
body: <p>suppose i have a  variable in string format for example and i have a javascript code in that</p>
  
  <pre><code> var string="function myFunction(a,b){return a*b;}";
  </code></pre>
  
  <p>this i want to convert into pure javascript code format as</p>
  
  <pre><code>function myFunction(a, b) {
  return a * b;
  }
  </code></pre>
  
  <p>how to do this? i mean i am getting the javascript code in string complete  format but i want to convert that to pure javascript code, its like beautifing the code which is in string format what should i do, and is their any way to do it in angular,javascript or c#</p>