JavaScript Advanced Programming (3rd edition)

Source: Internet
Author: User

Chapter 3rd Basic Concepts

In this chapter: syntax, data types, flow control statements, functions

3.1 Syntax

3.1.1 Case Sensitive

3.1.2 Identifier

Use Hump case Format

1) The first character must be a letter, an underscore (_), or a dollar sign ($);

2) Other characters can be letters, underscores, dollar signs, or numbers.

3.1.3 Notes

3.1.4 Strict mode

"Use Strict"

3.1.5 Statements

3.2 keywords and reserved words

3.3 Variables

Var

Local variables

3.4 Data types

5 Simple data types (also known as base data types): Undefined, Null, Boolean, number, and string

1 Complex data types: Object

3.4.1 typeof operator

The returned string: Undefined, Boolean, number, String, object (if the value is an object or a null value), and function

Isfinite () function, IsNaN () function

Numeric conversions: Number (), parseint (), and parsefloat ()

ToString (), String ()

Object:constructor, hasOwnProperty ( PropertyName), isPrototypeOf (object), propertyIsEnumerable ( PropertyName), toLocaleString (), toString (), ValueOf ()

3.5 operator

JavaScript Advanced Programming (3rd edition)

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.