Review (TL;DR) Review (TL;DR) Lexical scope means that scope is defined by author-time decisions of where functions are declared. The lexing phase of compilation is essentially...
Review (TL;DR) Review (TL;DR) Classes are a design pattern. Many languages provide syntax which enables natural class-oriented software design. JS also has a similar syntax, bu...
Review (TL;DR) Review (TL;DR) Objects in JS have both a literal form (such as var a = { .. } ) and a constructed form (such as var a = new Array(..) ). The literal form is almo...
Review (TL;DR) Review (TL;DR) this binding is a constant source of confusion for the JavaScript developer who does not take the time to learn how the mechanism actually works....
Review (TL;DR) Review (TL;DR) When attempting a property access on an object that doesn’t have that property, the object’s internal [[Prototype]] linkage defines where the [[G...
Review (TL;DR) Review (TL;DR) Determining the this binding for an executing function requires finding the direct call-site of that function. Once examined, four rules can be a...
Review (TL;DR) Review (TL;DR) We can be tempted to look at var a = 2; as one statement, but the JavaScript Engine does not see it that way. It sees var a and a = 2 as two se...
Review (TL;DR) Review (TL;DR) Classes and inheritance are a design pattern you can choose, or not choose, in your software architecture. Most developers take for granted that c...
Review (TL;DR) Review (TL;DR) Closure seems to the un-enlightened like a mystical world set apart inside of JavaScript which only the few bravest souls can reach. But it’s actu...
Review (TL;DR) Review (TL;DR) Functions are the most common unit of scope in JavaScript. Variables and functions that are declared inside another function are essentially “hidd...