Answers

Question and Answer:

  Home  JavaScript

⟩ How to create a function using function constructor?

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");

 209 views

More Questions for you: