Reference type Summary--ecmascript

Source: Internet
Author: User
Tags wrapper
Brief Introduction

Objects are called values of reference types in JavaScript, and there are built-in reference types that can be used to create specific objects that are similar to classes in traditional object-oriented programming, but implement different native reference types

1, object is an underlying type, all other types inherit from Object the basic behavior;

2. The array type is an ordered list of values, while also providing the ability to manipulate and convert these values;

3. The date type provides information about dates and times, including the current date and time, and related calculation functions;

4. The REGEXP type is a ECMAScript interface that supports regular expressions, providing the most basic and advanced regular expression functionality.

5, the function is actually an instance of the function type, so the functions are objects, and this is where JavaScript is most distinctive. Because functions are objects, functions also have methods that can be used to enhance their behavior.

Reference blog:
http://blog.csdn.net/iamcgt/article/category/6919501 Basic Packing type

Because of the basic wrapper type, the basic type values in JavaScript can be accessed as objects. The three basic types of packaging are Boolean, number, and String. The following are their common features:
1. Each wrapper type is mapped to the base type with the same name;

2, in read mode access to the basic type value, you will create a corresponding basic packaging type of an object, so as to facilitate data manipulation;

3, the operation of the basic type value of the statement once executed, will immediately destroy the newly created wrapper object.

Reference blog:
http://blog.csdn.net/iamcgt/article/details/73733862 monomer built-in objects

Before all code executes, there are two built-in objects in the scope: Global and Math. The Global object is not directly accessible in most ECMASCRIPT implementations, but the Web browser implements the Window object that assumes the role. Global variables and functions are properties of the global object. The Math object provides a number of properties and methods to assist in the completion of complex mathematical computing tasks.

Reference blog:
http://blog.csdn.net/iamcgt/article/details/77951482 Reference

"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.