JavaScript Learning Notes (ii) JavaScript basics

Source: Internet
Author: User

Naming rules for JavaScript identifiers: You must start with a letter or underscore, the middle can be a number, a letter, or an underscore; A variable name cannot contain a space, a plus, a minus sign, or a keyword in javascript; a JavaScript variable name is strictly case-sensitive

Abstract Continue Finally instanceof Private This Boolean Default
Float Int Public Throw Break Do For Interface
Return typeof Byte Double function Long Short True
Case Else Goto Native Static Var Catch Extends
Implements New Super void Char False Import Null
Switch While Class Final Inch Package Synchronized With

JavaScript variables are declared by the keyword VAR, and the syntax is:var variable The following rules for declaring variables: You can declare multiple variables at the same time using a keyword var; you can assign a value to a variable at the same time that it is declared, that is, initialization If a variable is declared only and is not assigned a value, its value defaults to undefined;

JavaScript Learning Notes (ii) JavaScript basics

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.