var addition = Function("a", "b", "return a + b;"); alert(addition(5, 3)); // shows '8'
Here is what the above code is Doing:
2. The Function constructor returns a reference to the newly created function.
3. The newly created function is assigned to the variable addition.
4. The addition function is called with two arguments.
5. The addition function returns the sum of its two arguments.