Chapter 3rd Basic Concepts
In this chapter: syntax, data types, flow control statements, functions
3.1 Syntax
3.1.1 Case Sensitive
3.1.2 Identifier
Use Hump case Format
1) The first character must be a letter, an underscore (_), or a dollar sign ($);
2) Other characters can be letters, underscores, dollar signs, or numbers.
3.1.3 Notes
3.1.4 Strict mode
"Use Strict"
3.1.5 Statements
3.2 keywords and reserved words
3.3 Variables
Var
Local variables
3.4 Data types
5 Simple data types (also known as base data types): Undefined, Null, Boolean, number, and string
1 Complex data types: Object
3.4.1 typeof operator
The returned string: Undefined, Boolean, number, String, object (if the value is an object or a null value), and function
Isfinite () function, IsNaN () function
Numeric conversions: Number (), parseint (), and parsefloat ()
ToString (), String ()
Object:constructor, hasOwnProperty ( PropertyName), isPrototypeOf (object), propertyIsEnumerable ( PropertyName), toLocaleString (), toString (), ValueOf ()
3.5 operator
JavaScript Advanced Programming (3rd edition)