-
Shorthand
- If true … else
- Null, Undefined
- Object Array Notation
- Associative Array Notation
- CharAt
- Assignment Operators
- Regex Object
- If Presence
- Declaring variables Shorthand
- Comparison returns
- Short function calling
- Switch Knightmare
- Shorter IF’z
-
bad parts
- this
- automatically inserts semi-colons
- implicit type coercion
- Global variables
-
good parts
- First-class functions and lambdas
- Prototypical inheritance
- Loose typing
-
Advantage
-
Maintainable
- Namespaces
-
JavaScript Techniques
- Closures
- Object Literals to Pass Optional Arguments
- Namespaces
- Best Practices
-
language
-
Data Type
-
Primitive types
- boolean
- number
- string
- null
- undefined
-
Object
- Array
- Function
- Array
- Date
- RegExp
-
special case
- null
- undefined
-
NaN
- isNaN
-
Type Coercion
- Implicit
-
explicitly convert
- parseInt
- parseFloat
- Double negation (!!)
-
other
- Conditionals
- Equals Operator (==)
- shorthand
-
Variable Scope
- global
- function
- Variable Hoisting