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