In JS, the syntax for creating a function object is var myFunction = new Function (arg1,..., agrn, body);
where the n parameters of the function object are placed in front of the body of the function body parameter, that is, the function body parameter must be placed at the end of the parameter list, or there can be no parameter new function (body).
If you add a third parameter to the last, then "alert (x+= ' aasf ')" will be passed into Func as a parameter, and the third parameter you add becomes the body of the function principal parameter, and there is no interaction between the parameters, of course, there will be no running effect.
-
Questioner evaluation
Comments | 1 0
ZJIAP | from team HTML | Level eight adoption rate 54%
Good: Html/css JavaScript
It is often used, but it is not clear what the detailed definition is.
About JS's function. From Baidu to know the answer, study.