Read "JavaScript DOM Programming Art (2nd edition)" Note

Source: Internet
Author: User

JavaScript code must be executed through the html/xhtml document, and the first way is to put the JS code between the <script> tags in the document to put the < Script> tags are placed before the last,<body> tag of the HTML document , allowing the browser to load the page faster

PS: Browser page load order: Please read this article

JS Note: 1,///2,/* 3, JS can be used <!--to comment, but this comment in JS can only comment one line, in the HTML can be cross-line, so in order to avoid confusion, JS best not to use this style of comments, suggested with//to comment on a single line,/* to comment on multiple lines

JS allows programmers to directly assign values to variables without prior declaration, the most efficient declaration and assignment practices: var mood= "Happy", age=33;

JS is a weakly typed language, meaning that programmers can change the data type of a variable at any stage

The character is escaped with a backslash in JS

Read "JavaScript DOM Programming Art (2nd edition)" Note

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.