摘要:
Any variable defined inside a function is considered private since it is inaccessable outside that function. This includes function arguments, local... 阅读全文
摘要:
The basic syntax of an anoymous function used as a block scope (often called a private scope) is as follows:(function(){ // block code here}) ();A va... 阅读全文
摘要:
********************* from Professional JavaScript for Web DevelopmentExecution Context And Scope The execution context of a variable or function def... 阅读全文
摘要:
One of the key characteristics of function declarations is function declaration hoisting, whereby function declarations are read before the code exc... 阅读全文
摘要:
Although using the object constructor or an object literal are convenient ways to create single objects, there is an obvious downside: creating mult... 阅读全文
摘要:
Prototype Chaining Recall the relationship between consructors, prototypes and instances: each constructor has a prototype object that points back to... 阅读全文
摘要:
ECMAScript variables may contains two different types of data: primitive values and reference values. Primitive values are simple atomic pieces of d... 阅读全文