title: Why can't I call my function created with the Function() constructor?
body: <p>I'm using the Function Constructor inside a function to create functions when I'm calling it</p>
  <p>Here is my constructor</p>
  <pre><code>funcGenerator(f) {
        return new Function(
          &quot;value&quot;,
          &quot;try{ return &quot; + f + '; } catch (e) { return &quot;error&quot;; }'
        );
  },
  </code></pre>
  <p>I call the function generator like this (inside an other function)</p>
  <pre><code>testFnc() {
      ... //content
  }
  </code></pre>
  <p>And inside, I called the generator :</p>
  <pre><code>var myFnc = this.funcGenerator('value.toLowerCase()');
  </code></pre>
  <p>But now, when I'm trying to give it a parameter <code>value</code> like this</p>
  <pre><code>var textLow = myFnc('THIS to loWeR');
  </code></pre>
  <p>It didn't work. I tried to <code>console.log</code> to see if there's any problem and here are my results :</p>
  <pre><code>console.log(myFnc); //Display the function so this part works apparently
  console.log(textLow); //Result is undefined
  console.log(myFnc()); //Result is error
  </code></pre>
  <p>So apparently, my function is working but when I'm adding the <code>()</code> and try give it a parameter, It didn't work.</p>
  <p>What I am doing wrong?</p>