title: Javascript: Dynamic function names
body: <p>How to create a function with a dynamic name? Something like:</p>
  
  <pre><code>function create_function(name){
     new Function(name, 'console.log("hello world")');
  }
  create_function('example');
  example(); // --&gt; 'hello world'
  </code></pre>
  
  <p>Also the function should be a Function Object so I can modify the prototype of the object.</p>