JavaScript Learning notes-some key points

Source: Internet
Author: User


JavaScript Learning notes-some key points table of Contents
    • 1. Commissioning
    • 2. == vs == =
    • 3. Two function declarations
    • 4. Technical sentiment
1Debugging

Mainstream browsers now offer developer mode to debug JavaScript through the console

2 == vs ===

= = First conversion type and then comparison, = = = First to determine the type, if not the same type directly to False.
= = = Constant Equals, the comparison of the two sides to absolutely the same

Alert (0 = = ""); Truealert (0 = = false); Truealert ("" = = False); Truealert (0 = = = ""); Falsealert (0 = = = False); Falsealert ("" = = = False); False
3Two kinds of function declarations

Mode 1:
var function name = function (parameter) {functional body};


Mode 2:
How about function ABC () {}?


What's the difference?

4Technical sentiment

Don ' t Repeat yourself (D.R.Y)
The best-of-the-get better at programming are to, and the learned to build something!

Author:galaxy

created:2015-09-23 Wed 17:31

Emacs 24.4.1 (ORG mode 8.2.10)

Validate

JavaScript Learning notes-some key points

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.