1.

How To Create A Function Using Function Constructor?

Answer»

The FOLLOWING example illustrates this
It CREATES a function called square with ARGUMENT X and RETURNS x multiplied by itself.
var square = new Function ("x","return x*x");

The following example illustrates this
It creates a function called square with argument x and returns x multiplied by itself.
var square = new Function ("x","return x*x");



Discussion

No Comment Found