About JS's function. From Baidu to know the answer, study.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.