JS Data Type Summary

Source: Internet
Author: User
Tags bitwise operators

1.Java Script Data type: (1) Basic types are: Number, Boolean, string, Undefined, null (2) reference types are: Native object, built-in object, host object

2. Identifiers: (1) identifiers cannot use the keyword (2) identifiers can contain letters, numbers 0-9, underscores (_), or dollar signs the first character of A $ (3) identifier must be a letter, an underscore (_), or a dollar sign $ (4) identifier is case-sensitive and does not specify a maximum length

3. Loop: (1) while loop (2) Do While loop (3) for loop

4.Switch statement: If statement creates a branch during program run, and can use else if to handle many branches however, we can use Switch,switch in the actual use of a large number of branches when we are dealing with many branches, and the code is clear. The execution is more efficient than the if branch, and the variable condition in the switch statement can be placed on any basic type

5.Java Script Process Control: There is no block scope in Java script, only the function scope, that is, the curly braces of the function can guarantee that the variables within the curly braces cannot be used outside the curly braces

5. Precedence of operators: Point operators and parentheses have the highest precedence, some special operator precedence ranked second, followed by arithmetic operators, followed by bitwise operators, relational operators, logical operators, assignment operators, and finally comma operators.

About yourself do not know the local 1.for loop, while loop and do While loop 2. Flashbacks 3. There are also problems in the process of reckoning that do not know how to express. 34. Operators are not clear about the actual use of the operator

JS Data Type Summary

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.