Js--wiki

Source: Internet
Author: User

0. JS's basic data type

Boolean number String Array Object Null Undefined

1.

If the browser is disabled live does not support JS, then JS will not be attempted to execute, NoScript will be executed

<script><!--     ... // -</script>
<noscript> Your browser does not support JavaScript</noscript>

2. JavaScript is strictly case sensitive

3. \ code Line Wrapping

4. Variable names cannot start with a number

5. Variable (function) name preferably with hump or underline method

6. The string must be in the middle of the quotation marks

7.js \ r \ n \ t is not the same as HTML

8. Undefined indicates that the variable is not assigned a value, and null means that the variable is given a value that does not exist

9. Number.NaN

Number (' 123abc ') = = NaN;

parseint (' 123abc ') = = 123;

10. Force data Type Conversion Boolean (0) Number (' 123 ');

11. String concatenation Form

"+ A + B + x;

12. Shaping, floating-point types support self-increment, self-decrement operator--+ +

13.

Js--wiki

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.