Skip to content

Technology Quote by Eric Freeman

“When you call an object’s method, this is set to the object whose method was called. If the method is not found in that object, and is found in the prototype, that doesn’t change the value of this. this always refers to the original object — that is, the object whose method was called — even if…” quote by Eric Freeman
Download Open image
““When you call an object’s method, this is set to the object whose method was called. If the method is not found in that object, and is found in the prototype, that doesn’t change the value of this. this always refers to the original object — that is, the object whose method was called — even if the method is in the prototype. So,””

Eric Freeman

About This Quote

Source Book: JavaScript: The Good Parts, 2008

The keyword “this” always points to the original object that invoked the method, even if the method resides in a prototype.

In simple terms: “this” stays with the caller.

Key Takeaway

Understand context binding.

Themes

programming JavaScript prototype inheritance

Mood

technical clarifying

Type

educational informative

When to use this quote

  • web development
  • software debugging
  • framework design

Key Concepts

Object-oriented concepts scope resolution

Questions to Reflect On

  • How does “this” behave in arrow functions?
  • When might you need to bind “this” manually?
A Different Perspective

Prototype chains can cause confusing bugs if misunderstood.

3.6 out of 5 (7 ratings)

More by Eric Freeman

Explore all 90 Eric Freeman quotes

More Technology quotes

Browse all 12,247 Technology quotes