JavaScript advanced-Syntax level inside

Source: Internet
Author: User

JS argument detailed

HTTPS://www.cnblogs.com/caoyc/p/5735299.html

Personal understanding: argument is a function parameter object, this object exists in every function, both tangible and actual arguments

Actual parameter: Arguments.length parameter  : arguments.callee.length

Lexical analysis

HTTPS://www.cnblogs.com/zingp/p/6102561.html

Personal Understanding : Lexical analysis, that is, JS is not like the top-down execution, he is pre-compiled similar processing, this processing, in the JS code block execution time of the last step = "Analysis function, Assigning a function to a parameter so the first console outputs the function age () {} instead of the Age=15 15,

Because the OA object to him is a funciton.

JS Scope and scope chain

HTTPS://

Personal Understanding:

Scope is divided into function scope (inside functions) and global scope (under window),

Local precedence is higher than global with the same name

Variables declared in function without VAR will directly change the global variables under window

The so-called scope chain is that in each function there is a

An internal property is [[Scope]], which contains a collection of objects within the scope of the function being created, called the scope chain of the function, which determines which data can be accessed by the function. A global object is populated in the scope chain that contains all global variables

What are the specific scope chains?

Woyexiangzhidao

The scope and closure of JavaScript

HTTPS://www.cnblogs.com/syfwhu/p/4839562.html

This usage of javascript

http://www.ruanyifeng.com/blog/2010/04/using_this_keyword_in_javascript.html

Explain this (I don't know how to read this)

http://www.jb51.net/article/77519.htm

JavaScript advanced-Syntax level inside

Related Article

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.