Monday, June 29, 2015

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

1 comment:

  1. http://astutejs.blogspot.in/2015/06/extjs-remove-listeners.html

    ReplyDelete

What is restrict option in directive?

The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...