The JavaScript authoritative guide reading notes

Source: Internet
Author: User
This is a very long blog

Finally the authoritative guide to buy back, has been hesitant, first: The book is too thick, afraid to buy can not insist on reading. Second: Feel too expensive, at least 100 ¥. Now the internship can also pay a little salary, set a volunteer for themselves: the one-month salary for the purchase of books. It's not too much of an expense to buy a 100¥ book. Good! Buy! In order to insist on reading, I will send reading notes to the blog, to urge themselves, but also to deepen their impressions, one at a stroke N, so decided.

Start reading:

1.

JS "False value": false, Undefined,null,0,-0,nan, "" (empty string) Total 7 All the remaining values are all true.

When JS expects to use a Boolean value, it treats the Undefined,null,0,-0,nan, "" as false.

2.

When the browser initializes, the initial properties of the global object are:

Global properties: Undefined, Infinity,nan

Global functions: IsNaN (), parseint (), eval ()

Constructor: Date (), RegExp (), String (), Object (), Array ()

Global objects: Math, JSON

3.

= = will turn Undefined,null,0,-0,nan, "" and convert to False

= = Treats the string, number, and Boolean primitive values as equal to their wrapper classes (objects). = = = as unequal

The JavaScript authoritative guide reading notes

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.