JavaScript interview Guide One (js data type, = = and = = = difference)

Source: Internet
Author: User

I gather a lot of questions about the JS Foundation, and share with you the success of the interview

What are the Q1,javascript data types?

Don't underestimate the problem oh, this question is very humble but difficult to answer

The answer I recommend is from the essence of javacript language.

The simple types of JavaScript include numbers, strings, Boolean values (True and false), null values, and undefined values. All other values are objects. Numbers, strings, and Boolean "seemingly" objects because they have methods, but they are immutable. The object in JavaScript is a mutable key-value collection (keyed collections). In JavaScript, an array is an object, a function is an object, a regular expression is an object, and of course an object is naturally an object. Objects are containers for properties, where each property has a name and value. The name of the property can be any string, including an empty string. The property value can be any value other than the undefined value.
The objects in JavaScript are untyped (silent: or JavaScript has only one type, which is the object) (Class-free). It has no constraints on the name and value of the new property. objects are suitable for collecting and managing data. Objects can contain other objects, so they can be easily represented as a tree or graphic structure.
JavaScript includes a prototype chain feature that allows an object to inherit properties from another object. Using it correctly can reduce the time and memory consumption of object initialization.

JavaScript interview Guide One (js data type, = = and = = = difference)

Related Article

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.