DEV Community

Discussion on: What is this in Javascript?

Collapse
 
pentacular profile image
pentacular
  • "It’s good to remember that function in Javascript is an object. It has its own properties, one of them is this and value its value depends on how it’s invoked."

This implies that invoking the function modifies its properties, which is untrue.

The critical insight here is that 'this' is not a property of the function object.