Javascript-an interactive javascript tutorial

Source: Internet
Author: User

Javascript-an interactive javascript tutorial
This site also provides some other languages for you to learn. Playing in this interactive mode is much more impressive than reading a book. Record a point: the usage of javascript substring is somewhat interesting. To take the four characters "12345678" in "4567", use "12345678". substring ). Here, start is based on 0, which is nothing special, but end seems to be based on 1 (shouldn't it be up to 6th characters? Why 7th ?), It is inconsistent with the general thinking. In my opinion, the correct understanding of this method should be that all characters between the first few intervals and the first few intervals. Suppose there is a cursor "|" scanning from the left side of the 3rd characters, always scanning to the left side of the 7th characters cursor position (0 base ).

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.