JS Authoritative Guide Note 1

Source: Internet
Author: User

There are two types of 1.JavaScript data: Primitive Type and object type. The original type also includes numbers, strings, and Booleans, as well as null and undefined, which are a collection of properties, and each property has its own name/value pairs, common object types are functions, arrays (array), dates ( Date), Regular (REGEXP), and Errors (error).

1.1 Data types can also be divided into mutable types and immutable types. Objects and arrays are mutable types , Numbers, Boolean values, and null and undefined are immutable types .

The 2.JAVASCRIPT interpreter has its own memory management mechanism that automates the garbage collection of memory (garbage collection).

3.JavaScript represents numbers in a 64-bit floating-point format defined by the IEEE 754 standard. The integer range that can be representedis -2--253, which contains the boundary value. But in the actual operation is a 32-bit integer.

4. Variable comparisons of primitive types are comparisons of values, whereas objects are compared by reference (because objects are reference types and object values are references).

5.JavaScript is a weakly typed scripting language that converts the type itself as needed when needed. You can also do display type conversions when necessary, such as number (' 3 '), String (false), Boolean ([]), Object (3). (See Rhino P50)

See the Rhino P53 for the conversion steps of the thought string in 6.JavaScript.

Look at these for the time being, and pause for a moment.

JS Authoritative Guide Note 1

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.