JS Code Specification

Source: Internet
Author: User

1 <!DOCTYPE HTML>2 <HTML>3     <Head>4         <MetaCharSet= "UTF-8">5         <title></title>6     </Head>7     <Body>8     </Body>9     Ten     <Scripttype= "Text/javascript"> One      A      *Code Specification -      1, JS inside the statement end after the semicolon is optional (but the recommended line of code after the end of the need to add a semicolon) -      2, when defining the variablevarAdd a space between the keyword and the variable name the      3, JS does not parse spaces and line breaks, so you can use spaces and line breaks to keep your code neat -      4, binocular operators need spaces before and after -      5, define the name of the variable using the Hump naming method (the second word starts with the first letter capitalized, the number can not start) -      6, semicolons and commas must be used in the English state +       -  + Note double quotation marks "" A Do not use quotation marks: at     //1. Define the name of the variable without quotation marks -     //2. Numbers without quotes -     //3. Function name without quotation marks -     //* Except for all the extra -  -  in     varStudentname= 1 1.1 "Dadad"; -     varresult= true;  to     varresult2= false; +  -  the     </Script> *      $     Panax Notoginseng </HTML>

JS Code Specification

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.