Introduction to Pure Novice---Declaration specification for variable names

Source: Internet
Author: User

1. You can use a number, but you cannot start with a number

2. Can not use Chinese characters, of course, this is not the grammar requirements, is the customary requirements, (personally think: can use, but have not seen so use, because the pinyin has low to the human bottom line!) )

3. Cannot use special symbols, underline and $ (personal opinion and JQ related)

4.js variables are strictly case-sensitive (individuals always use lowercase)

5. Declare variables to make sense, do not arbitrarily abcd (with ABCD I only saw Baidu that one so wayward)

6. Variable names cannot be duplicated with system keywords, reserved words (prevent keyword reserved word conflicts)

Introduction to Pure Novice---Declaration specification for variable names

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.