JS Weak type:
Raw data types are transferred by value, and other data types are routed by reference
Variables can vary type based on assigned value, type conversion between primitive types (toString (), parseint (), parsefloat (), double ' non ' transition to Boolean value )
Http://i.cnblogs.com/EditPosts.aspx?opt=1
Function:
Anonymous functions are used to create closures (a protected variable space, generated by inline functions).
Function-level scope--function internal variables are not accessed externally
The word hair nature of a scope---function runs at the scope that defines it, not the scope that calls it
Object:
Variability----can modify objects
Introspection-----can examine the properties and methods of an object at run time, which can be used to dynamically instantiate a class and execute its methods (called reflection)
JS anything can be modified in the run.
Inheritance (two types of methods):
Object-based (prototype) inheritance
Imitating class-based inheritance
It's easy to implement design patterns, and knowing when to use what patterns is the key
JS design mode---Reading notes 001--expressive JS