Skip to main content

Posts

Featured

this keyword in execution contexts

  Introduction In this article we will discuss one more detail directly related with execution contexts . The topic of discussion is the this keyword. As the practice shows, this topic is difficult enough and often causes issues in determination of this value in different execution contexts. Many programmers are used to thinking that the this keyword in programming languages is closely related to the object-oriented programming, exactly referring the newly created object by the constructor. In ECMAScript this concept is also implemented, however, as we will see, here it is not limited only to definition of created object. Let’s see in detail what exactly this value is in ECMAScript. Definitions this is a property of the execution context . It’s a special object in which context a code is executed. 1 2 3 4 activeExecutionContext = {    VO: {...},    this : thisValue }; where VO is variable object which we discussed in the previous chapter. this is directly relate

Latest Posts

(005) Nietzsche’s “Beyond Good and Evil”, One Paragraph at a Time