instance creation : obj = new contructor[(arguments)]; If there are no arguments to omit the parentheses, note that this is not a function call;
Direct Volume vs. initializer: The direct amount is separated from the initializer in the preceding basic expression, because the declaration of the direct volume does not include the operation process, and the declaration of the initializer can include the operation process.
- Direct volume: generally divided into 6 kinds, including the regular expression declaration; In the engine's view, its value is known at compile time;
- Initializers: Include functions, objects, array declarations, which may not be expected by itself.
Object:
- Delete: The ability to delete most members of an object, including members of global object globals, cannot delete var declaration variables and members that inherit directly from the prototype; returns false only if a member cannot be deleted;
- In: Object member check (both inherited and non-enumerable): string in object;
- For/in: Enumerating object members (including inheritance);
- propertyIsEnumerable (): Enumerates object members (not including inheritance);
JS: The essence of Language Note 4----Object-oriented Programming overview