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