How to create a function using function constructor ?

 Posted by Bharathi Cherukuri on 7/11/2012 | Category: JavaScript Interview questions | Views: 1351 | Points: 40

The following example gives detailed explanation on this:
It creates a function called square with argument x and returns x multiplied by itself.

var square = new Function ("x","return x*x");

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response