1. How data is stored
1. Literal
2. Variables
3. Array items
4. Object Members
2. Respective performance characteristics
1. The fastest access to literals and local variables, and relatively slow access to array items and object members
2. Because local variables start at the scope chain, accessing local variables is faster than accessing cross-scope variables. The deeper the variable is located in the scope chain, the longer it will be accessed.
3. Avoid using the WITH and Try-catch statements because he will change the scope chain and affect performance.
4. Nested object members can significantly affect performance.
5. The deeper the properties and methods are located on the prototype chain, the slower the access is.
6. You can save common object members, array elements, and cross-domain variables in local variables to improve performance.
Data storage-High performance JavaScript